forked from phoenix/litellm-mirror
commit
50f61bcea4
1 changed files with 4 additions and 6 deletions
|
@ -16,9 +16,8 @@ os.environ['MISTRAL_API_KEY'] = ""
|
||||||
response = completion(
|
response = completion(
|
||||||
model="mistral/mistral-tiny"",
|
model="mistral/mistral-tiny"",
|
||||||
messages=[
|
messages=[
|
||||||
"role": "user",
|
{"role": "user", "content": "hello from litellm"}
|
||||||
"content": "hello from litellm"
|
],
|
||||||
]
|
|
||||||
)
|
)
|
||||||
print(response)
|
print(response)
|
||||||
```
|
```
|
||||||
|
@ -32,9 +31,8 @@ os.environ['MISTRAL_API_KEY'] = ""
|
||||||
response = completion(
|
response = completion(
|
||||||
model="mistral/mistral-tiny",
|
model="mistral/mistral-tiny",
|
||||||
messages=[
|
messages=[
|
||||||
"role": "user",
|
{"role": "user", "content": "hello from litellm"}
|
||||||
"content": "hello from litellm"
|
],
|
||||||
]
|
|
||||||
stream=True
|
stream=True
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue