Create ollama_conn.py
This commit is contained in:
@@ -0,0 +1,6 @@
|
|||||||
|
import ollama
|
||||||
|
|
||||||
|
def ask_ollama(prompt, content):
|
||||||
|
response = ollama.generate(model="llama3.1", prompt=f"Beantworte die Frage \"{prompt}\" auf basis der folgenden Daten: \"{content}\"")
|
||||||
|
return response.response
|
||||||
|
|
||||||
Reference in New Issue
Block a user