Update generic_dvm_duck_chat.py

This commit is contained in:
dbth 2024-10-03 20:12:36 +02:00 committed by GitHub
parent 81430f816f
commit ac01d5b2f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -56,7 +56,7 @@ def playground(announce=False):
from duck_chat import DuckChat
options = dvm.set_options(request_form)
async with DuckChat(model=ModelType.GPT4o) as chat:
query = ("{role: system, content: " + options["system_prompt"] + "}" +" {role: user: content:" + options["input"]+ "}")
query = ("{role: system, content: " + options["system_prompt"] + "}" +" {role: user, content:" + options["input"]+ "}")
result = await chat.ask_question(query)
print(result)
return result