Spaces:
Runtime error
Runtime error
Eddyhzd
commited on
Commit
·
55c417f
1
Parent(s):
cccc2e6
test
Browse files
app.py
CHANGED
|
@@ -10,7 +10,7 @@ from contextlib import AsyncExitStack
|
|
| 10 |
cle_api = os.environ.get("CLE_API_ANTHROPIC")
|
| 11 |
|
| 12 |
# Initialisation du client Anthropic
|
| 13 |
-
clientLLM = Anthropic(
|
| 14 |
|
| 15 |
# --- Event Loop ---
|
| 16 |
loop = asyncio.new_event_loop()
|
|
@@ -75,7 +75,6 @@ def chatbot(message, history):
|
|
| 75 |
|
| 76 |
# Appel API Anthropique
|
| 77 |
response = clientLLM.messages.create(
|
| 78 |
-
model="claude-opus-4-1-20250805", # tu peux changer pour claude-3-opus ou autre
|
| 79 |
max_tokens=500,
|
| 80 |
messages=messages,
|
| 81 |
tools=clientMCP.tools if clientMCP.tools else None
|
|
|
|
| 10 |
cle_api = os.environ.get("CLE_API_ANTHROPIC")
|
| 11 |
|
| 12 |
# Initialisation du client Anthropic
|
| 13 |
+
clientLLM = Anthropic()
|
| 14 |
|
| 15 |
# --- Event Loop ---
|
| 16 |
loop = asyncio.new_event_loop()
|
|
|
|
| 75 |
|
| 76 |
# Appel API Anthropique
|
| 77 |
response = clientLLM.messages.create(
|
|
|
|
| 78 |
max_tokens=500,
|
| 79 |
messages=messages,
|
| 80 |
tools=clientMCP.tools if clientMCP.tools else None
|