refactor, date context

This commit is contained in:
Steve Androulakis
2025-01-01 13:16:18 -08:00
parent 8115f0d2df
commit e7e8e7e658
17 changed files with 118 additions and 90 deletions

23
scripts/run_ollama.py Normal file
View File

@@ -0,0 +1,23 @@
from ollama import chat, ChatResponse
def main():
model_name = "mistral"
# The messages to pass to the model
messages = [
{
"role": "user",
"content": "Why is the sky blue?",
}
]
# Call ollama's chat function
response: ChatResponse = chat(model=model_name, messages=messages)
# Print the full message content
print(response.message.content)
if __name__ == "__main__":
main()