Skip to content

Commit

Permalink
Merge branch 'main' into wael/add-azure-dalle
Browse files Browse the repository at this point in the history
  • Loading branch information
WaelKarkoub committed May 4, 2024
2 parents f5b6fd8 + 3a4bb08 commit d3fd3e2
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
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

0 comments on commit d3fd3e2

Please sign in to comment.