Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
# --- Helper Functions ---
|
2 |
|
3 |
# !!! WARNING: This function is adapted to the requested format and LOSES features !!!
|
4 |
-
def get_openai_response_simplified(prompt, model=
|
5 |
"""
|
6 |
Gets a response using the client.responses.create format.
|
7 |
NOTE: This is NON-STREAMING and handles history/system prompt crudely.
|
|
|
1 |
# --- Helper Functions ---
|
2 |
|
3 |
# !!! WARNING: This function is adapted to the requested format and LOSES features !!!
|
4 |
+
def get_openai_response_simplified(prompt, model="GPT-4.1", system_prompt="", chat_history=None):
|
5 |
"""
|
6 |
Gets a response using the client.responses.create format.
|
7 |
NOTE: This is NON-STREAMING and handles history/system prompt crudely.
|