Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -250,10 +250,8 @@ async def start():
|
|
| 250 |
if not contextChat:
|
| 251 |
contextChat = "Il n'y a pas de contexte."
|
| 252 |
model = ChatAnthropic(
|
| 253 |
-
streaming=True,
|
| 254 |
temperature=1,
|
| 255 |
-
|
| 256 |
-
model_name="claude-3-sonnet-20240229"
|
| 257 |
)
|
| 258 |
cl.user_session.set("memory", ConversationBufferMemory(return_messages=True))
|
| 259 |
memory = cl.user_session.get("memory")
|
|
@@ -719,9 +717,7 @@ async def setup_agent(settings):
|
|
| 719 |
if not contextChat:
|
| 720 |
contextChat = "Il n'y a pas de contexte."
|
| 721 |
model = ChatAnthropic(
|
| 722 |
-
streaming=True,
|
| 723 |
temperature=1,
|
| 724 |
-
max_tokens=4000,
|
| 725 |
model_name="claude-3-opus-20240229"
|
| 726 |
)
|
| 727 |
cl.user_session.set("memory", ConversationBufferMemory(return_messages=True))
|
|
|
|
| 250 |
if not contextChat:
|
| 251 |
contextChat = "Il n'y a pas de contexte."
|
| 252 |
model = ChatAnthropic(
|
|
|
|
| 253 |
temperature=1,
|
| 254 |
+
model_name="claude-3-opus-20240229"
|
|
|
|
| 255 |
)
|
| 256 |
cl.user_session.set("memory", ConversationBufferMemory(return_messages=True))
|
| 257 |
memory = cl.user_session.get("memory")
|
|
|
|
| 717 |
if not contextChat:
|
| 718 |
contextChat = "Il n'y a pas de contexte."
|
| 719 |
model = ChatAnthropic(
|
|
|
|
| 720 |
temperature=1,
|
|
|
|
| 721 |
model_name="claude-3-opus-20240229"
|
| 722 |
)
|
| 723 |
cl.user_session.set("memory", ConversationBufferMemory(return_messages=True))
|