mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-06-27 09:51:33 +00:00
When using direct endpoints (e.g., Google) instead of Agents, `this.options.agent` is undefined, causing provider detection to fail. This resulted in "Unknown content type document" errors for Google/Gemini PDF uploads. Added `?? this.options.endpoint` fallback in addDocuments(), addVideos(), and addAudios() methods to ensure correct provider detection for all endpoint types. |
||
|---|---|---|
| .. | ||
| document | ||
| llm | ||
| output_parsers | ||
| prompts | ||
| specs | ||
| tools | ||
| AnthropicClient.js | ||
| BaseClient.js | ||
| GoogleClient.js | ||
| index.js | ||
| OllamaClient.js | ||
| OpenAIClient.js | ||
| TextStream.js | ||