Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -83,7 +83,7 @@ def install_bot_integration(bot_id, workspace_id):
|
|
| 83 |
# Integration payload
|
| 84 |
payload = {
|
| 85 |
"integrations": {
|
| 86 |
-
"
|
| 87 |
"enabled": True
|
| 88 |
}
|
| 89 |
}
|
|
@@ -167,10 +167,10 @@ def chat_with_assistant(user_input, chat_history, bot_id, workspace_id):
|
|
| 167 |
|
| 168 |
# Prepare the payload for the new API
|
| 169 |
payload = {
|
| 170 |
-
"type": "
|
| 171 |
"input": {
|
| 172 |
"model": {
|
| 173 |
-
"id": "
|
| 174 |
},
|
| 175 |
"systemPrompt": system_prompt,
|
| 176 |
"messages": messages,
|
|
|
|
| 83 |
# Integration payload
|
| 84 |
payload = {
|
| 85 |
"integrations": {
|
| 86 |
+
"intver_01JRTRGWBFDXPMCGYM47DCR78E": {
|
| 87 |
"enabled": True
|
| 88 |
}
|
| 89 |
}
|
|
|
|
| 167 |
|
| 168 |
# Prepare the payload for the new API
|
| 169 |
payload = {
|
| 170 |
+
"type": "openai:generateContent",
|
| 171 |
"input": {
|
| 172 |
"model": {
|
| 173 |
+
"id": "gpt-4.1-2025-04-14"
|
| 174 |
},
|
| 175 |
"systemPrompt": system_prompt,
|
| 176 |
"messages": messages,
|