Update app.py
Browse files
app.py
CHANGED
@@ -384,7 +384,7 @@ def invoke (prompt, file, history, rag_option, model_option, openai_api_key, k=3
|
|
384 |
#LLM auswählen (OpenAI oder HF)
|
385 |
###########################
|
386 |
if (model_option == "OpenAI"):
|
387 |
-
text = 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)
|
|
|
384 |
#LLM auswählen (OpenAI oder HF)
|
385 |
###########################
|
386 |
if (model_option == "OpenAI"):
|
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)
|