llama_core

Module chat

source
Expand description

Define APIs for chat completion.

Functionsยง

  • Processes a chat-completion request and returns either a stream of ChatCompletionChunk instances or a ChatCompletionObject instance.
  • Processes a chat-completion request and returns a ChatCompletionObject instance.
  • Processes a chat-completion request and returns ChatCompletionChunk instances in stream.