Redo model checking in ask formatting

Rene Teigen 1 year ago
parent 5ce380a229
commit a8c6ea52d2

@ -350,10 +350,10 @@ class TextService:
elif from_ask_command or from_ask_action: elif from_ask_command or from_ask_action:
response_model = response["model"] response_model = response["model"]
if ( if (
response_model in Models.GPT4_MODELS "gpt-3.5" in response_model
or response_model in Models.CHATGPT_MODELS or "gpt-4" in response_model
): ):
response_text = f"\n\n{response_text}" response_text = f"\n\n{response_text}" if not response_text.startswith("\n\n") else response_text
response_text = f"***{prompt}***{response_text}" response_text = f"***{prompt}***{response_text}"
elif from_edit_command: elif from_edit_command:
response_text = response_text.strip() response_text = response_text.strip()

Loading…
Cancel
Save