mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-27 03:34:10 +00:00
docs - "codestral/codestral-latest"
This commit is contained in:
parent
866f26ceda
commit
13bd7e8127
2 changed files with 134 additions and 2 deletions
|
@ -823,13 +823,17 @@ async def test_completion_codestral_chat_api():
|
|||
litellm.set_verbose = True
|
||||
response = await litellm.acompletion(
|
||||
model="codestral/codestral-latest",
|
||||
max_tokens=5,
|
||||
messages=[
|
||||
{
|
||||
"role": "user",
|
||||
"content": "Hey, how's it going?",
|
||||
}
|
||||
],
|
||||
temperature=0.0,
|
||||
top_p=1,
|
||||
max_tokens=10,
|
||||
safe_prompt=False,
|
||||
seed=12,
|
||||
)
|
||||
# Add any assertions here to-check the response
|
||||
print(response)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue