Updates and added day1 with ollama

This commit is contained in:
Edward Donner
2025-04-05 10:01:00 -04:00
parent 750f9a6062
commit 344219c9f3
9 changed files with 627 additions and 22 deletions

View File

@@ -120,6 +120,9 @@
"# Simpler than in my video - we can easily create this function that calls OpenAI\n",
"# It's now just 1 line of code to prepare the input to OpenAI!\n",
"\n",
"# Student Octavio O. has pointed out that this isn't quite as straightforward for Claude -\n",
"# see the excellent contribution in community-contributions \"Gradio_issue_with_Claude\" that handles Claude.\n",
"\n",
"def chat(message, history):\n",
" messages = [{\"role\": \"system\", \"content\": system_message}] + history + [{\"role\": \"user\", \"content\": message}]\n",
"\n",