Chat

ChatResource

Chat

Completions

ChatResource.CompletionsResource

Methods

models() ->
get/v5/chat/completions/models

List Chat Completion Models

Parameters
ending_before: Optional[str]
limit: Optional[int]
(maximum: 10000, minimum: 1, default: 100)
model_vendor: Optional[]
sort_by: Optional[str]
sort_order: Optional[]
starting_after: Optional[str]
Returns
class CompletionModelsResponse:
items: List[]
object: Optional[Literal["list"]]
(default: "list")
Request example
200Example
create() ->
post/v5/chat/completions

Chat Completions

Domain types

class ChatCompletion: ...
class ChatCompletionChunk: ...
class ChatCompletionTokenLogprob: ...
class ChoiceLogprobs: ...

Log probability information for the choice.

class CompletionModelsResponse: ...
Literal["openai", "cohere", "vertex_ai", "anthropic", "azure", "gemini", "launch", "llmengine", "model_zoo", "bedrock", "xai", "fireworks_ai"]
class ModelDefinition: ...
Literal["asc", "desc"]