mirror of https://github.com/microsoft/autogen.git
add faq for autogen and openai assistant compatible version (#2587)
This commit is contained in:
parent
093c1a26e3
commit
3a4bb088f7
|
@ -268,3 +268,12 @@ Migrating enhances flexibility, modularity, and customization in handling chat m
|
|||
### How to migrate?
|
||||
|
||||
To ensure a smooth migration process, simply follow the detailed guide provided in [Handling Long Context Conversations with Transform Messages](/docs/topics/long_contexts.md).
|
||||
|
||||
### What should I do if I get the error "TypeError: Assistants.create() got an unexpected keyword argument 'file_ids'"?
|
||||
|
||||
This error typically occurs when using Autogen version earlier than 0.2.27 in combination with OpenAI library version 1.21 or later. The issue arises because the older version of Autogen does not support the file_ids parameter used by newer versions of the OpenAI API.
|
||||
To resolve this issue, you need to upgrade your Autogen library to version 0.2.27 or higher that ensures compatibility between Autogen and the OpenAI library.
|
||||
|
||||
```python
|
||||
pip install --upgrade autogen
|
||||
```
|
||||
|
|
|
@ -2,6 +2,11 @@
|
|||
|
||||
The GPTAssistantAgent is a powerful component of the AutoGen framework, utilizing OpenAI's Assistant API to enhance agents with advanced capabilities. This agent enables the integration of multiple tools such as the Code Interpreter, File Search, and Function Calling, allowing for a highly customizable and dynamic interaction model.
|
||||
|
||||
Version Requirements:
|
||||
|
||||
- AutoGen: Version 0.2.27 or higher.
|
||||
- OpenAI: Version 1.21 or higher.
|
||||
|
||||
Key Features of the GPTAssistantAgent:
|
||||
|
||||
- Multi-Tool Mastery: Agents can leverage a combination of OpenAI's built-in tools, like [Code Interpreter](https://platform.openai.com/docs/assistants/tools/code-interpreter) and [File Search](https://platform.openai.com/docs/assistants/tools/file-search), alongside custom tools you create or integrate via [Function Calling](https://platform.openai.com/docs/assistants/tools/function-calling).
|
||||
|
@ -165,7 +170,6 @@ api_schema = get_function_schema(
|
|||
description="Returns the current weather data for a specified location."
|
||||
)
|
||||
|
||||
api_schema = "define your function schema here"
|
||||
assistant_config = {
|
||||
"tools": [
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue