corrected openai utils example (#869)

This commit is contained in:
axa99 2023-12-05 13:13:13 -06:00 committed by GitHub
parent fa5f4ca8e3
commit 195c87e309
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +56,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
@ -65,7 +65,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
@ -83,9 +83,17 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 4,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"[{'api_key': 'YOUR_OPENAI_API_KEY', 'api_type': 'openai'}]\n"
]
}
],
"source": [
"api_keys = [\"YOUR_OPENAI_API_KEY\"]\n",
"base_urls = None # You can specify API base URLs if needed. eg: localhost:8000\n",
@ -289,7 +297,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
@ -299,7 +307,6 @@
" aoai_api_key_file = \"key_aoai.txt\",\n",
" aoai_api_base_file = \"base_aoai.txt\",\n",
" exclude=\"aoai\",\n",
" model_list = None,\n",
" model_list=[\"gpt-4\", \"gpt-3.5-turbo\", \"gpt-3.5-turbo-16k\"],\n",
")"
]