remove add relay with opts function

This commit is contained in:
Believethehype
2024-09-27 09:40:12 +02:00
parent 209c8947a6
commit 0ab6e01897
8 changed files with 11 additions and 16 deletions

View File

@@ -43,7 +43,8 @@ def playground(announce=False):
nip89config.CONTENT = json.dumps(nip89info)
options = {
"input": "How do you call a noisy ostrich?",
"system_prompt": "You are a funny purple ostrich. Reply in a funny way.",
"input": "",
}
dvm = GenericDVM(name=name, dvm_config=dvm_config, nip89config=nip89config,
@@ -55,8 +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:
system_prompt= "You are a Bitcoiner.."
query = ("{System}: " + system_prompt +" {User}: "+ options["input"])
query = ("{role: system, content: " + options["system_prompt"] + "}" +" {role: user: content:" + options["input"]+ "}")
result = await chat.ask_question(query)
print(result)
return result