Update app.py
Browse files
app.py
CHANGED
@@ -387,8 +387,10 @@ def invoke (prompt, file, history, rag_option, model_option, openai_api_key, k=3
|
|
387 |
text = str(prompt)
|
388 |
#Anfrage an OpenAI ----------------------------
|
389 |
if (text.find('Bild zeichnen')):
|
|
|
390 |
llm = ChatOpenAI(model_name = MODEL_NAME_OAI_ZEICHNEN, openai_api_key = openai_api_key, temperature=temperature)#, top_p = top_p)
|
391 |
else:
|
|
|
392 |
llm = ChatOpenAI(model_name = MODEL_NAME, openai_api_key = openai_api_key, temperature=temperature)#, top_p = top_p)
|
393 |
|
394 |
print("openAI")
|
|
|
387 |
text = str(prompt)
|
388 |
#Anfrage an OpenAI ----------------------------
|
389 |
if (text.find('Bild zeichnen')):
|
390 |
+
print("OpenAI zeichnen.......................")
|
391 |
llm = ChatOpenAI(model_name = MODEL_NAME_OAI_ZEICHNEN, openai_api_key = openai_api_key, temperature=temperature)#, top_p = top_p)
|
392 |
else:
|
393 |
+
print("OpenAI normal.......................")
|
394 |
llm = ChatOpenAI(model_name = MODEL_NAME, openai_api_key = openai_api_key, temperature=temperature)#, top_p = top_p)
|
395 |
|
396 |
print("openAI")
|