Skip to content

Commit

Permalink
moving api keys up
Browse files Browse the repository at this point in the history
  • Loading branch information
TuanaCelik committed Sep 27, 2024
1 parent 5d964c4 commit 73a1194
Showing 1 changed file with 31 additions and 31 deletions.
62 changes: 31 additions & 31 deletions notebooks/query_decomposition.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,37 @@
"from typing import List, Any, Dict, Optional, Callable, Union"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "7JGz6wd6mZ2M",
"outputId": "9d577b8c-7aff-4604-f9b6-847ff2b5534a"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"OpenAI API Key:ยทยทยทยทยทยทยทยทยทยท\n",
"Cohere API Key:ยทยทยทยทยทยทยทยทยทยท\n"
]
}
],
"source": [
"import os\n",
"from getpass import getpass\n",
"\n",
"if \"OPENAI_API_KEY\" not in os.environ:\n",
" os.environ[\"OPENAI_API_KEY\"] = getpass(\"OpenAI API Key:\")\n",
"\n",
"if \"COHERE_API_KEY\" not in os.environ:\n",
" os.environ[\"COHERE_API_KEY\"] = getpass(\"Cohere API Key:\")"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down Expand Up @@ -173,37 +204,6 @@
" return chat_message"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"colab": {
"base_uri": "https://localhost:8080/"
},
"id": "7JGz6wd6mZ2M",
"outputId": "9d577b8c-7aff-4604-f9b6-847ff2b5534a"
},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"OpenAI API Key:ยทยทยทยทยทยทยทยทยทยท\n",
"Cohere API Key:ยทยทยทยทยทยทยทยทยทยท\n"
]
}
],
"source": [
"import os\n",
"from getpass import getpass\n",
"\n",
"if \"OPENAI_API_KEY\" not in os.environ:\n",
" os.environ[\"OPENAI_API_KEY\"] = getpass(\"OpenAI API Key:\")\n",
"\n",
"if \"COHERE_API_KEY\" not in os.environ:\n",
" os.environ[\"COHERE_API_KEY\"] = getpass(\"Cohere API Key:\")"
]
},
{
"cell_type": "markdown",
"metadata": {
Expand Down

0 comments on commit 73a1194

Please sign in to comment.