Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ os.environ["OPENAI_API_KEY"] = "sk-proj-RjUY8U-Fo9sR3NRiAppGItyftxLUA65zYoPlkGPI
|
|
| 18 |
#Function to return the response
|
| 19 |
def load_answer(question):
|
| 20 |
# "text-davinci-003" model is depreciated, so using the latest one https://platform.openai.com/docs/deprecations
|
| 21 |
-
llm =
|
| 22 |
|
| 23 |
#Last week langchain has recommended to use invoke function for the below please :)
|
| 24 |
answer=llm.invoke(question)
|
|
|
|
| 18 |
#Function to return the response
|
| 19 |
def load_answer(question):
|
| 20 |
# "text-davinci-003" model is depreciated, so using the latest one https://platform.openai.com/docs/deprecations
|
| 21 |
+
llm = ChatOpenAI(model_name="gpt-4o-mini",temperature=0)
|
| 22 |
|
| 23 |
#Last week langchain has recommended to use invoke function for the below please :)
|
| 24 |
answer=llm.invoke(question)
|