|
45 | 45 | },
|
46 | 46 | "outputs": [],
|
47 | 47 | "source": [
|
48 |
| - "# %pip install pyautogen~=0.1.0" |
| 48 | + "# %pip install pyautogen~=0.2.0b2" |
49 | 49 | ]
|
50 | 50 | },
|
51 | 51 | {
|
|
74 | 74 | "cell_type": "markdown",
|
75 | 75 | "metadata": {},
|
76 | 76 | "source": [
|
77 |
| - "It first looks for environment variable \"OAI_CONFIG_LIST\" which needs to be a valid json string. If that variable is not found, it then looks for a json file named \"OAI_CONFIG_LIST\".\n", |
| 77 | + "It first looks for environment variable \"OAI_CONFIG_LIST\" which needs to be a valid json string. If that variable is not found, it then looks for a json file named \"OAI_CONFIG_LIST\". It filters the configs by models (you can filter by other keys as well). Only the models with matching names are kept in the list based on the filter condition.\n", |
78 | 78 | "\n",
|
79 | 79 | "The config list looks like the following:\n",
|
80 | 80 | "```python\n",
|
81 | 81 | "config_list = [\n",
|
82 | 82 | " {\n",
|
83 | 83 | " 'model': 'gpt-4',\n",
|
84 | 84 | " 'api_key': '<your OpenAI API key here>',\n",
|
85 |
| - " }, # OpenAI API endpoint for gpt-4\n", |
86 |
| - " {\n", |
87 |
| - " 'model': 'gpt-4',\n", |
88 |
| - " 'api_key': '<your first Azure OpenAI API key here>',\n", |
89 |
| - " 'base_url': '<your first Azure OpenAI API base here>',\n", |
90 |
| - " 'api_type': 'azure',\n", |
91 |
| - " 'api_version': '2023-06-01-preview',\n", |
92 |
| - " }, # Azure OpenAI API endpoint for gpt-4\n", |
93 |
| - " {\n", |
94 |
| - " 'model': 'gpt-4',\n", |
95 |
| - " 'api_key': '<your second Azure OpenAI API key here>',\n", |
96 |
| - " 'base_url': '<your second Azure OpenAI API base here>',\n", |
97 |
| - " 'api_type': 'azure',\n", |
98 |
| - " 'api_version': '2023-06-01-preview',\n", |
99 |
| - " }, # another Azure OpenAI API endpoint for gpt-4\n", |
| 85 | + " },\n", |
100 | 86 | " {\n",
|
101 | 87 | " 'model': 'gpt-3.5-turbo',\n",
|
102 |
| - " 'api_key': '<your OpenAI API key here>',\n", |
103 |
| - " }, # OpenAI API endpoint for gpt-3.5-turbo\n", |
104 |
| - " {\n", |
105 |
| - " 'model': 'gpt-3.5-turbo',\n", |
106 |
| - " 'api_key': '<your first Azure OpenAI API key here>',\n", |
107 |
| - " 'base_url': '<your first Azure OpenAI API base here>',\n", |
| 88 | + " 'api_key': '<your Azure OpenAI API key here>',\n", |
| 89 | + " 'base_url': '<your Azure OpenAI API base here>',\n", |
108 | 90 | " 'api_type': 'azure',\n",
|
109 |
| - " 'api_version': '2023-06-01-preview',\n", |
110 |
| - " }, # Azure OpenAI API endpoint for gpt-3.5-turbo\n", |
| 91 | + " 'api_version': '2023-08-01-preview',\n", |
| 92 | + " },\n", |
111 | 93 | " {\n",
|
112 |
| - " 'model': 'gpt-3.5-turbo',\n", |
113 |
| - " 'api_key': '<your second Azure OpenAI API key here>',\n", |
114 |
| - " 'base_url': '<your second Azure OpenAI API base here>',\n", |
| 94 | + " 'model': 'gpt-3.5-turbo-16k',\n", |
| 95 | + " 'api_key': '<your Azure OpenAI API key here>',\n", |
| 96 | + " 'base_url': '<your Azure OpenAI API base here>',\n", |
115 | 97 | " 'api_type': 'azure',\n",
|
116 |
| - " 'api_version': '2023-06-01-preview',\n", |
117 |
| - " }, # another Azure OpenAI API endpoint for gpt-3.5-turbo\n", |
| 98 | + " 'api_version': '2023-08-01-preview',\n", |
| 99 | + " },\n", |
118 | 100 | "]\n",
|
119 | 101 | "```\n",
|
120 | 102 | "\n",
|
121 |
| - "If you open this notebook in colab, you can upload your files by clicking the file icon on the left panel and then choosing \"upload file\" icon.\n", |
122 |
| - "\n", |
123 |
| - "You can set the value of config_list in other ways you prefer, e.g., loading from a YAML file." |
| 103 | + "You can set the value of config_list in any way you prefer. Please refer to this [notebook](https://github.com/microsoft/autogen/blob/main/notebook/oai_openai_utils.ipynb) for full code examples of the different methods." |
124 | 104 | ]
|
125 | 105 | },
|
126 | 106 | {
|
|
0 commit comments