Chat
ChatResource
Chat
Completions
ChatResource.CompletionsResource
Methods
get/v5/chat/completions/models
List Chat Completion Models
Parameters
ending_before: Optional[str]
limit: Optional[int]
(maximum: 10000, minimum: 1, default: 100)sort_by: Optional[str]
starting_after: Optional[str]
Returns
class CompletionModelsResponse:
object: Optional[Literal["list"]]
(default: "list")Request example
200Example
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"]