add poll answer support
This commit is contained in:
1 parent
f6109bb91a
commit
ee5a6bdcc3
4 files changed
+100
-4
No files matched your search
+2
-2
@@ -204,7 +204,7 @@ async def generate(
|
||||
stream_cf = config["stream"]
|
||||
system_prompt_name = config["prompt"]
|
||||
if system_prompt_name in SYSTEM_PROMPTS:
|
||||
system_prompt = SYSTEM_PROMPTS[system_prompt_name]
|
||||
system_prompt = SYSTEM_PROMPTS[system_prompt_name] + ADD_TO_PROMPT
|
||||
else:
|
||||
text = "❌произошла ошибка, возможные проблемы:\n" \
|
||||
f"1. у вас выбран удалённый сист промпт (`{system_prompt_name}`)\n" \
|
||||
@@ -259,7 +259,7 @@ async def generate(
|
||||
print(f"{RED} -- err photo - {e} : {model}{RESET}")
|
||||
|
||||
content += [{"type": "text", "text": prompt}]
|
||||
messages = [{"role": "system", "content": SYSTEM_PROMPTS[DEFAULT_PROMPT]}] + [
|
||||
messages = [{"role": "system", "content": SYSTEM_PROMPTS[DEFAULT_PROMPT]+ADD_TO_PROMPT}] + [
|
||||
{"role": "user", "content": content}
|
||||
]
|
||||
|
||||
|
||||
Reference in new issue
Block a user