Files
litellm/docs/output.md
T
Krrish Dholakia 5e564ef5de code cleanup
2023-08-07 10:44:04 -07:00

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}}
```