set up for proper repo crap

This commit is contained in:
2024-11-11 20:23:18 +10:00
parent b72d422746
commit bf40e4a3ca
7 changed files with 26 additions and 3 deletions
+13
View File
@@ -0,0 +1,13 @@
from ollama import Client
client = Client(host='http://192.168.178.45:11434')
user_prompt = input("Ask mistral-nemo a question: ")
response = client.chat(model='mistral-nemo', messages=[
{
'role': 'user',
'content': f'{user_prompt}',
},
])
print(response['message']['content'])