litellm-mirror/old-docs/output.md
Krrish Dholakia dc6e93f0d0 updating docs
2023-08-12 11:30:32 -07:00

471 B

Completion Function - completion()

Here's the exact json output you can expect from a litellm completion call:

{'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}}