by mritchie712 · 2y ago · 0 comments
response = ollama.chat(model=OLLAMA_MODEL,
messages=[
{
'role': 'system',
'content': system_message,
},
{
'role': 'user',
'content': user_prompt,
},
],
format='json',
options = {
#'temperature': 1.5, # very creative
'temperature': 0.0
}
)
0 - https://github.com/ollama/ollama/blob/main/docs/api.md#json-...