Skip to content

Commit

Permalink
corrected openai utils example (#869)
Browse files Browse the repository at this point in the history
  • Loading branch information
axa99 authored Dec 5, 2023
1 parent fa5f4ca commit 195c87e
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions notebook/oai_openai_utils.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -65,7 +65,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -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",
Expand Down Expand Up @@ -289,7 +297,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
Expand All @@ -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",
")"
]
Expand Down

0 comments on commit 195c87e

Please sign in to comment.