agents
agents copied to clipboard
Add Support for OpenAI Assistants API to OpenAI plugin
Describe the bug
The assistants completion API is slightly different from the base model completions api so the base_url
cannot be simply swapped to the endpoint of an Assistant.
To Reproduce
- Swap OpenAI plugin
base_url
to an Assistantbase url
formatted ashttps://api.openai.com/v1/assistants/{assistant_id}/messages
- Attempt to use the assistant for completions
- Receive stack trace around argument mismatch in
LLM.chat()
Expected behavior Assistant completions work as expected (similarly to base model completions)