alexkueck commited on
Commit
2a93b9d
1 Parent(s): a970ef0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -287,7 +287,7 @@ def invoke (prompt, history, openai_api_key, rag_option, temperature=0.9, max_ne
287
  #LLM auswählen (OpenAI oder HF)
288
  ###########################
289
  #Anfrage an OpenAI
290
- llm = ChatOpenAI(model_name = MODEL_NAME, openai_api_key = openai_api_key, temperature=temperature, top_p = top_p)
291
  #oder an Hugging Face
292
  #llm = HuggingFaceHub(repo_id=repo_id, model_kwargs={"temperature": 0.5, "max_length": 64})
293
  #llm = HuggingFaceHub(url_??? = "https://wdgsjd6zf201mufn.us-east-1.aws.endpoints.huggingface.cloud", model_kwargs={"temperature": 0.5, "max_length": 64})
 
287
  #LLM auswählen (OpenAI oder HF)
288
  ###########################
289
  #Anfrage an OpenAI
290
+ llm = ChatOpenAI(model_name = MODEL_NAME, openai_api_key = openai_api_key, temperature=0)#, top_p = top_p)
291
  #oder an Hugging Face
292
  #llm = HuggingFaceHub(repo_id=repo_id, model_kwargs={"temperature": 0.5, "max_length": 64})
293
  #llm = HuggingFaceHub(url_??? = "https://wdgsjd6zf201mufn.us-east-1.aws.endpoints.huggingface.cloud", model_kwargs={"temperature": 0.5, "max_length": 64})