Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -8,7 +8,10 @@ import secrets
|
|
8 |
|
9 |
|
10 |
Mistralai = "19NAIlRYNoVaNYoNoxkdq1mCmbdAgxaa"
|
11 |
-
|
|
|
|
|
|
|
12 |
|
13 |
|
14 |
def trigger_example(example):
|
@@ -29,7 +32,7 @@ def generate_response(user_message, cid, token, history=None):
|
|
29 |
|
30 |
history.append(user_message)
|
31 |
|
32 |
-
stream =
|
33 |
|
34 |
output = ""
|
35 |
|
|
|
8 |
|
9 |
|
10 |
Mistralai = "19NAIlRYNoVaNYoNoxkdq1mCmbdAgxaa"
|
11 |
+
# model = "mistral-large-latest"
|
12 |
+
|
13 |
+
client = MistralClient(api_key=Mistralai)
|
14 |
+
|
15 |
|
16 |
|
17 |
def trigger_example(example):
|
|
|
32 |
|
33 |
history.append(user_message)
|
34 |
|
35 |
+
stream = client.chat_stream(message=user_message, conversation_id=cid, model='Codestral-22B-v0.1', connectors=[], temperature=0.3)
|
36 |
|
37 |
output = ""
|
38 |
|