Spaces:
Sleeping
Sleeping
Revert "change model to 4.1 mini"
Browse filesThis reverts commit 18d4145a9b27e2396eec9ccfba5c64548766ee21.
app.py
CHANGED
|
@@ -118,7 +118,7 @@ def generate_completion(query, history, memory):
|
|
| 118 |
yield "Error: OpenAI API Key is not set or is invalid. Please provide a valid key."
|
| 119 |
return
|
| 120 |
|
| 121 |
-
llm = OpenAI(temperature=0.2, model="gpt-
|
| 122 |
client = llm._get_client()
|
| 123 |
logfire.instrument_openai(client)
|
| 124 |
|
|
|
|
| 118 |
yield "Error: OpenAI API Key is not set or is invalid. Please provide a valid key."
|
| 119 |
return
|
| 120 |
|
| 121 |
+
llm = OpenAI(temperature=0.2, model="gpt-4o-mini", api_key=openAI_api_key)
|
| 122 |
client = llm._get_client()
|
| 123 |
logfire.instrument_openai(client)
|
| 124 |
|