[Bug]: Agents - too long function description with medium size RAG knowledge base #4745
Open
1 task done
Labels
bug
Something isn't working
What happened?
Agents RAG tool generated function description exceeding the 1024 maximum length allowed by OpenAI API.
I can provide a sample knowledge base if needed.
Steps to Reproduce
What browsers are you seeing the problem on?
No response
Relevant log output
error: [api/server/controllers/agents/client.js #sendCompletion] Unhandled error type 400 Invalid 'tools[1].function.description': string too long. Expected a string with maximum length 1024, but got a string with length 1775 instead.
Screenshots
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: