Wk1 Day2 Exercise Ollama solution
This commit is contained in:
@@ -15,9 +15,15 @@
|
||||
"from openai import OpenAI\n",
|
||||
"\n",
|
||||
"load_dotenv(override=True)\n",
|
||||
"api_key = os.getenv('DEEPSEEK_API_KEY')\n",
|
||||
"base_url=os.getenv('DEEPSEEK_BASE_URL')\n",
|
||||
"MODEL = \"deepseek-chat\"\n",
|
||||
"# Deep seek API payload\n",
|
||||
"# api_key = os.getenv('DEEPSEEK_API_KEY')\n",
|
||||
"# base_url=os.getenv('DEEPSEEK_BASE_URL')\n",
|
||||
"# MODEL = \"deepseek-chat\"\n",
|
||||
"\n",
|
||||
"# Day 2 Exercise with Ollama API\n",
|
||||
"api_key = os.getenv('OLLAMA_API_KEY')\n",
|
||||
"base_url = os.getenv('OLLAMA_BASE_URL')\n",
|
||||
"MODEL = \"llama3.2\"\n",
|
||||
"\n",
|
||||
"system_prompt = \"You are an assistant that analyzes the contents of a website \\\n",
|
||||
"and provides a short summary, ignoring text that might be navigation related. \\\n",
|
||||
|
||||
Reference in New Issue
Block a user