You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5-7Lines changed: 5 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,9 +27,7 @@ $ source ~/.zshenv
27
27
<!-- Start Summary [summary] -->
28
28
## Summary
29
29
30
-
Mistral AI API: Dora OpenAPI schema
31
-
32
-
Our Chat Completion and Embeddings APIs specification. Create your account on [La Plateforme](https://console.mistral.ai) to get access and read the [docs](https://docs.mistral.ai) to learn how to use it.
30
+
Mistral AI API: Our Chat Completion and Embeddings APIs specification. Create your account on [La Plateforme](https://console.mistral.ai) to get access and read the [docs](https://docs.mistral.ai) to learn how to use it.
33
31
<!-- End Summary [summary] -->
34
32
35
33
<!-- Start Table of Contents [toc] -->
@@ -161,8 +159,8 @@ with Mistral(
161
159
162
160
res = mistral.chat.complete(model="mistral-large-latest", messages=[
163
161
{
164
-
"content": "Who is the best French painter? Answer in one short sentence.",
165
162
"role": "user",
163
+
"content": "Who is the best French painter? Answer in one short sentence.",
166
164
},
167
165
], stream=False, response_format={
168
166
"type": "text",
@@ -190,8 +188,8 @@ async def main():
190
188
191
189
res =await mistral.chat.complete_async(model="mistral-large-latest", messages=[
192
190
{
193
-
"content": "Who is the best French painter? Answer in one short sentence.",
194
191
"role": "user",
192
+
"content": "Who is the best French painter? Answer in one short sentence.",
195
193
},
196
194
], stream=False, response_format={
197
195
"type": "text",
@@ -269,8 +267,8 @@ with Mistral(
269
267
270
268
res = mistral.agents.complete(messages=[
271
269
{
272
-
"content": "Who is the best French painter? Answer in one short sentence.",
273
270
"role": "user",
271
+
"content": "Who is the best French painter? Answer in one short sentence.",
0 commit comments