Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add faq for autogen and openai assistant compatible version #2587

Merged
merged 1 commit into from
May 4, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions website/docs/FAQ.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
6 changes: 5 additions & 1 deletion website/docs/topics/openai-assistant/gpt_assistant_agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down Expand Up @@ -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": [
{
Expand Down
Loading