package
0.0.6
Repository: https://github.com/github/gh-models.git
Documentation: pkg.go.dev

# Functions

NewAzureClient returns a new Azure client using the given HTTP client, configuration, and auth token.
NewDefaultAzureClient returns a new Azure client using the given auth token using default API URLs.
NewDefaultAzureClientConfig returns a new AzureClientConfig with default values for API URLs.
NewMockClient returns a new mock client for stubbing out interactions with the models API.
NewUnauthenticatedClient contructs a new models API client for an anonymous viewer.
SortModels sorts the given models in place, with featured models first, and then by friendly name.

# Constants

ChatMessageRoleAssistant represents a message from the model.
ChatMessageRoleSystem represents a system message.
ChatMessageRoleUser represents a message from the user.
NOTICE represents a legal notice to display to the user when they interact with Models.

# Structs

AzureClient provides a client for interacting with the Azure models API.
AzureClientConfig represents configurable settings for the Azure client.
ChatChoice represents a choice in a chat completion.
ChatChoiceMessage is a message from a choice in a chat conversation.
ChatCompletion represents a chat completion.
ChatCompletionOptions represents available options for a chat completion request.
ChatCompletionResponse represents a response to a chat completion request.
ChatMessage represents a message from a chat thread with a model.
MockClient provides a client for interacting with the Azure models API in tests.
ModelDetails includes detailed information about a model.
ModelSummary includes basic information about a model.
UnauthenticatedClient is for use by anonymous viewers to talk to the models API.

# Interfaces

Client represents a client for interacting with an API about models.

# Type aliases

ChatMessageRole represents the role of a chat message.