package
0.0.0-20241223025009-582a1bd8b7d2
Repository: https://github.com/lingticio/llmg.git
Documentation: pkg.go.dev
# Functions
No description provided by the author
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
Enum value maps for ChatCompletionFinishReason.
Enum value maps for ChatCompletionFinishReason.
Enum value maps for ChatCompletionMessageContentPartImageDetail.
Enum value maps for ChatCompletionMessageContentPartImageDetail.
Enum value maps for ChatCompletionMessageContentPartImageType.
Enum value maps for ChatCompletionMessageContentPartImageType.
Enum value maps for ChatCompletionMessageToolCallType.
Enum value maps for ChatCompletionMessageToolCallType.
Enum value maps for ChatCompletionServiceTier.
Enum value maps for ChatCompletionServiceTier.
No description provided by the author
OpenAIService_ServiceDesc is the grpc.ServiceDesc for OpenAIService service.
# Structs
ChatCompletionAssistantMessage represents an assistant message in the chat conversation.
ChatCompletionChoice represents a single completion choice in the chat completion response.
ChatCompletionChoiceLogprobs contains log probability information for a completion choice.
ChatCompletionChunkChoice represents a single completion choice in a streamed chat completion chunk.
ChatCompletionChunkChoiceDelta represents the content delta in a stream response.
ChatCompletionChunkToolCall represents a tool call made by the model.
ChatCompletionFunctionDefinition defines a function that the model can call.
ChatCompletionMessage represents a message in the chat conversation.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ChatCompletionMessageContentPart represents a part of the message content (text or image).
No description provided by the author
No description provided by the author
ChatCompletionMessageContentPartImage represents an image content part.
ChatCompletionMessageContentPartImageURL contains the URL and detail level of an image.
ChatCompletionMessageContentPartText represents a text content part.
No description provided by the author
No description provided by the author
ChatCompletionMessageToolCall represents a tool call made by the model.
ChatCompletionMessageToolCallFunction represents the details of a function call made by the model.
ChatCompletionNamedToolChoice specifies a tool the model should use.
ChatCompletionNamedToolChoiceFunction specifies the function to call.
ChatCompletionResponseFormat specifies the desired response format.
No description provided by the author
No description provided by the author
No description provided by the author
ChatCompletionResponseFormatJsonObject specifies the desired response format.
ChatCompletionResponseFormatJsonSchema specifies the desired response format.
No description provided by the author
ChatCompletionResponseFormatText specifies the desired response format.
No description provided by the author
ChatCompletionSystemMessage represents a system message in the chat conversation.
ChatCompletionTokenLogprob contains log probability information for a single token.
ChatCompletionTokenLogprobTopLogProb represents a top alternative token and its log probability.
ChatCompletionTool represents a tool that the model can use.
No description provided by the author
ChatCompletionToolMessage represents a tool message in the chat conversation.
ChatCompletionUsage provides token usage information for a completion request.
ChatCompletionUserMessage represents a user message in the chat conversation.
No description provided by the author
No description provided by the author
No description provided by the author
CreateChatCompletionRequest represents the parameters for creating a chat completion.
ChatCompletion represents a chat completion response returned by the model.
CreateChatCompletionRequest represents the parameters for creating a chat completion.
ChatCompletionChunk represents a streamed chunk of a chat completion response.
UnimplementedOpenAIServiceServer must be embedded to have forward compatible implementations.
# Interfaces
No description provided by the author
No description provided by the author
OpenAIServiceClient is the client API for OpenAIService service.
OpenAIServiceServer is the server API for OpenAIService service.
UnsafeOpenAIServiceServer may be embedded to opt out of forward compatibility for this service.
# Type aliases
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author