Update demo.ipynb

This commit is contained in:
Zach 2025-03-23 12:18:38 -04:00 committed by GitHub
parent 4e09e3025a
commit 946a662703
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@
"from duckduckgo_search import DDGS\n", "from duckduckgo_search import DDGS\n",
"\n", "\n",
"def call_llm(prompt):\n", "def call_llm(prompt):\n",
" client = OpenAI(api_key=\"os.environ.get(\"OPENAI_API_KEY\", \"your-api-key\")\")\n", " client = OpenAI(api_key=\"your-api-key\")\n",
" r = client.chat.completions.create(\n", " r = client.chat.completions.create(\n",
" model=\"gpt-4o\",\n", " model=\"gpt-4o\",\n",
" messages=[{\"role\": \"user\", \"content\": prompt}]\n", " messages=[{\"role\": \"user\", \"content\": prompt}]\n",