Spaces:
Sleeping
Sleeping
api keys update
Browse files- excel_chat.py +2 -2
excel_chat.py
CHANGED
@@ -19,13 +19,13 @@ def ask_llm(query, input, client_index):
|
|
19 |
]
|
20 |
|
21 |
if client_index == 0:
|
22 |
-
client = Groq(api_key=
|
23 |
chat_completion = client.chat.completions.create(
|
24 |
messages=messages,
|
25 |
model='mixtral-8x7b-32768',
|
26 |
)
|
27 |
else:
|
28 |
-
client = MistralClient(api_key=
|
29 |
chat_completion = client.chat(
|
30 |
messages=messages,
|
31 |
model='mistral-small-latest',
|
|
|
19 |
]
|
20 |
|
21 |
if client_index == 0:
|
22 |
+
client = Groq(api_key=os.environ["GROQ_API_KEY"])
|
23 |
chat_completion = client.chat.completions.create(
|
24 |
messages=messages,
|
25 |
model='mixtral-8x7b-32768',
|
26 |
)
|
27 |
else:
|
28 |
+
client = MistralClient(api_key=os.environ['MISTRAL_API_KEY']))
|
29 |
chat_completion = client.chat(
|
30 |
messages=messages,
|
31 |
model='mistral-small-latest',
|