diff --git a/website/docs/FAQ.mdx b/website/docs/FAQ.mdx index ee5331f4594b..6baa09768a63 100644 --- a/website/docs/FAQ.mdx +++ b/website/docs/FAQ.mdx @@ -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 +``` diff --git a/website/docs/topics/openai-assistant/gpt_assistant_agent.md b/website/docs/topics/openai-assistant/gpt_assistant_agent.md index fc16893dec14..4e358fcab16f 100644 --- a/website/docs/topics/openai-assistant/gpt_assistant_agent.md +++ b/website/docs/topics/openai-assistant/gpt_assistant_agent.md @@ -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": [ {