Update app.py
Browse files
app.py
CHANGED
|
@@ -105,7 +105,7 @@ def install_bot_integration(bot_id, workspace_id):
|
|
| 105 |
# Integration payload
|
| 106 |
payload = {
|
| 107 |
"integrations": {
|
| 108 |
-
"
|
| 109 |
"enabled": True
|
| 110 |
}
|
| 111 |
}
|
|
@@ -214,10 +214,10 @@ def chat_with_assistant(user_input, chat_history, bot_id, workspace_id, temperat
|
|
| 214 |
|
| 215 |
# Prepare the payload for the API
|
| 216 |
payload = {
|
| 217 |
-
"type": "
|
| 218 |
"input": {
|
| 219 |
"model": {
|
| 220 |
-
"id": "
|
| 221 |
},
|
| 222 |
"systemPrompt": system_prompt,
|
| 223 |
"messages": messages,
|
|
|
|
| 105 |
# Integration payload
|
| 106 |
payload = {
|
| 107 |
"integrations": {
|
| 108 |
+
"intver_01JSERDW0MD5Z7ZY1SSWG97AR1": {
|
| 109 |
"enabled": True
|
| 110 |
}
|
| 111 |
}
|
|
|
|
| 214 |
|
| 215 |
# Prepare the payload for the API
|
| 216 |
payload = {
|
| 217 |
+
"type": "anthropic:generateContent",
|
| 218 |
"input": {
|
| 219 |
"model": {
|
| 220 |
+
"id": "claude-3-5-sonnet-20241022"
|
| 221 |
},
|
| 222 |
"systemPrompt": system_prompt,
|
| 223 |
"messages": messages,
|