🤖 fix: Address Minor Agent Issues (#4483)

* fix(Agents): remove test code in openAI/llm.js

* refactor: add use of enums in encodeAndFormat

* fix: image attachment payload formatting for agents

* chore: imports
This commit is contained in:
Danny Avila 2024-10-21 09:41:04 -04:00 committed by GitHub
parent a6fbe7591a
commit ec922986a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 20 additions and 6 deletions

View file

@ -10,6 +10,7 @@
const { Callback, createMetadataAggregator } = require('@librechat/agents');
const {
Constants,
VisionModes,
openAISchema,
EModelEndpoint,
anthropicSchema,
@ -196,6 +197,7 @@ class AgentClient extends BaseClient {
this.options.req,
attachments,
this.options.agent.provider,
VisionModes.agents,
);
message.image_urls = image_urls.length ? image_urls : undefined;
return files;