mirror of
https://github.com/tiennm99/litellm.git
synced 2026-06-30 23:05:31 +00:00
12 lines
471 B
Markdown
12 lines
471 B
Markdown
# Completion Function - completion()
|
|
Here's the exact json output you can expect from a `litellm` completion call:
|
|
|
|
```python
|
|
{'choices': [{'finish_reason': 'stop',
|
|
'index': 0,
|
|
'message': {'role': 'assistant',
|
|
'content': " I'm doing well, thank you for asking. I am Claude, an AI assistant created by Anthropic."}}],
|
|
'created': 1691429984.3852863,
|
|
'model': 'claude-instant-1',
|
|
'usage': {'prompt_tokens': 18, 'completion_tokens': 23, 'total_tokens': 41}}
|
|
``` |