Documentation
¶
Index ¶
- Variables
- type APIKey
- func (*APIKey) Descriptor() ([]byte, []int)deprecated
- func (x *APIKey) GetCreatedAt() *timestamppb.Timestamp
- func (x *APIKey) GetId() string
- func (x *APIKey) GetLastUsedAt() *timestamppb.Timestamp
- func (x *APIKey) GetMaskedValue() string
- func (x *APIKey) GetName() string
- func (x *APIKey) GetValue() string
- func (*APIKey) ProtoMessage()
- func (x *APIKey) ProtoReflect() protoreflect.Message
- func (x *APIKey) Reset()
- func (x *APIKey) String() string
- type ChatCompletionMessage
- func (*ChatCompletionMessage) Descriptor() ([]byte, []int)deprecated
- func (x *ChatCompletionMessage) GetContent() string
- func (x *ChatCompletionMessage) GetLogprobs() *structpb.Struct
- func (x *ChatCompletionMessage) GetRole() string
- func (x *ChatCompletionMessage) GetToolCalls() []*ToolCallMessage
- func (*ChatCompletionMessage) ProtoMessage()
- func (x *ChatCompletionMessage) ProtoReflect() protoreflect.Message
- func (x *ChatCompletionMessage) Reset()
- func (x *ChatCompletionMessage) String() string
- type ChatCompletionRequest
- func (*ChatCompletionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ChatCompletionRequest) GetBestOf() uint64
- func (x *ChatCompletionRequest) GetEcho() bool
- func (x *ChatCompletionRequest) GetFrequencyPenalty() float32
- func (x *ChatCompletionRequest) GetLogitBias() *structpb.Struct
- func (x *ChatCompletionRequest) GetLogprobs() bool
- func (x *ChatCompletionRequest) GetMaxTokens() uint64
- func (x *ChatCompletionRequest) GetMessages() []*ChatCompletionMessage
- func (x *ChatCompletionRequest) GetModel() string
- func (x *ChatCompletionRequest) GetN() uint64
- func (x *ChatCompletionRequest) GetPresencePenalty() float32
- func (x *ChatCompletionRequest) GetResponseFormat() *ResponseFormat
- func (x *ChatCompletionRequest) GetSeed() uint64
- func (x *ChatCompletionRequest) GetStop() []string
- func (x *ChatCompletionRequest) GetStream() bool
- func (x *ChatCompletionRequest) GetSuffix() string
- func (x *ChatCompletionRequest) GetTemperature() float32
- func (x *ChatCompletionRequest) GetToolChoice() *structpb.Struct
- func (x *ChatCompletionRequest) GetTopK() float32
- func (x *ChatCompletionRequest) GetTopLogprobs() uint64
- func (x *ChatCompletionRequest) GetTopP() float32
- func (x *ChatCompletionRequest) GetUser() string
- func (*ChatCompletionRequest) ProtoMessage()
- func (x *ChatCompletionRequest) ProtoReflect() protoreflect.Message
- func (x *ChatCompletionRequest) Reset()
- func (x *ChatCompletionRequest) String() string
- type ChatCompletionResponse
- func (*ChatCompletionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ChatCompletionResponse) GetCached() bool
- func (x *ChatCompletionResponse) GetChoices() []*CompletionChoice
- func (x *ChatCompletionResponse) GetCreated() uint64
- func (x *ChatCompletionResponse) GetId() string
- func (x *ChatCompletionResponse) GetModel() string
- func (x *ChatCompletionResponse) GetObject() string
- func (x *ChatCompletionResponse) GetUsage() *Usage
- func (*ChatCompletionResponse) ProtoMessage()
- func (x *ChatCompletionResponse) ProtoReflect() protoreflect.Message
- func (x *ChatCompletionResponse) Reset()
- func (x *ChatCompletionResponse) String() string
- type CompletionChoice
- func (*CompletionChoice) Descriptor() ([]byte, []int)deprecated
- func (x *CompletionChoice) GetFinishReason() string
- func (x *CompletionChoice) GetIndex() uint32
- func (x *CompletionChoice) GetLogprobs() *structpb.Struct
- func (x *CompletionChoice) GetMessage() *ChatCompletionMessage
- func (*CompletionChoice) ProtoMessage()
- func (x *CompletionChoice) ProtoReflect() protoreflect.Message
- func (x *CompletionChoice) Reset()
- func (x *CompletionChoice) String() string
- type CreateAPIKeyRequest
- func (*CreateAPIKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAPIKeyRequest) GetName() string
- func (*CreateAPIKeyRequest) ProtoMessage()
- func (x *CreateAPIKeyRequest) ProtoReflect() protoreflect.Message
- func (x *CreateAPIKeyRequest) Reset()
- func (x *CreateAPIKeyRequest) String() string
- type CreateAPIKeyResponse
- func (*CreateAPIKeyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateAPIKeyResponse) GetKey() *APIKey
- func (*CreateAPIKeyResponse) ProtoMessage()
- func (x *CreateAPIKeyResponse) ProtoReflect() protoreflect.Message
- func (x *CreateAPIKeyResponse) Reset()
- func (x *CreateAPIKeyResponse) String() string
- type CreateProviderRequest
- func (*CreateProviderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CreateProviderRequest) GetConfig() *structpb.Struct
- func (x *CreateProviderRequest) GetName() string
- func (*CreateProviderRequest) ProtoMessage()
- func (x *CreateProviderRequest) ProtoReflect() protoreflect.Message
- func (x *CreateProviderRequest) Reset()
- func (x *CreateProviderRequest) String() string
- type CreateProviderResponse
- func (*CreateProviderResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CreateProviderResponse) GetConfig() *structpb.Struct
- func (x *CreateProviderResponse) GetName() string
- func (*CreateProviderResponse) ProtoMessage()
- func (x *CreateProviderResponse) ProtoReflect() protoreflect.Message
- func (x *CreateProviderResponse) Reset()
- func (x *CreateProviderResponse) String() string
- type DeleteAPIKeyRequest
- func (*DeleteAPIKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteAPIKeyRequest) GetId() string
- func (*DeleteAPIKeyRequest) ProtoMessage()
- func (x *DeleteAPIKeyRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteAPIKeyRequest) Reset()
- func (x *DeleteAPIKeyRequest) String() string
- type DeleteProviderRequest
- func (*DeleteProviderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *DeleteProviderRequest) GetName() string
- func (*DeleteProviderRequest) ProtoMessage()
- func (x *DeleteProviderRequest) ProtoReflect() protoreflect.Message
- func (x *DeleteProviderRequest) Reset()
- func (x *DeleteProviderRequest) String() string
- type FinishReason
- func (FinishReason) Descriptor() protoreflect.EnumDescriptor
- func (x FinishReason) Enum() *FinishReason
- func (FinishReason) EnumDescriptor() ([]byte, []int)deprecated
- func (x FinishReason) Number() protoreflect.EnumNumber
- func (x FinishReason) String() string
- func (FinishReason) Type() protoreflect.EnumType
- type Function
- type GetAPIKeyRequest
- type GetAPIKeyResponse
- type GetProviderConfigRequest
- func (*GetProviderConfigRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetProviderConfigRequest) GetName() string
- func (*GetProviderConfigRequest) ProtoMessage()
- func (x *GetProviderConfigRequest) ProtoReflect() protoreflect.Message
- func (x *GetProviderConfigRequest) Reset()
- func (x *GetProviderConfigRequest) String() string
- type GetProviderConfigResponse
- func (*GetProviderConfigResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetProviderConfigResponse) GetConfig() *structpb.Struct
- func (*GetProviderConfigResponse) ProtoMessage()
- func (x *GetProviderConfigResponse) ProtoReflect() protoreflect.Message
- func (x *GetProviderConfigResponse) Reset()
- func (x *GetProviderConfigResponse) String() string
- type GetProviderRequest
- func (*GetProviderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetProviderRequest) GetName() string
- func (*GetProviderRequest) ProtoMessage()
- func (x *GetProviderRequest) ProtoReflect() protoreflect.Message
- func (x *GetProviderRequest) Reset()
- func (x *GetProviderRequest) String() string
- type GetProviderResponse
- func (*GetProviderResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetProviderResponse) GetProvider() *Provider
- func (*GetProviderResponse) ProtoMessage()
- func (x *GetProviderResponse) ProtoReflect() protoreflect.Message
- func (x *GetProviderResponse) Reset()
- func (x *GetProviderResponse) String() string
- type ListAPIKeysResponse
- func (*ListAPIKeysResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListAPIKeysResponse) GetKeys() []*APIKey
- func (*ListAPIKeysResponse) ProtoMessage()
- func (x *ListAPIKeysResponse) ProtoReflect() protoreflect.Message
- func (x *ListAPIKeysResponse) Reset()
- func (x *ListAPIKeysResponse) String() string
- type ListProvidersResponse
- func (*ListProvidersResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListProvidersResponse) GetProviders() []*Provider
- func (*ListProvidersResponse) ProtoMessage()
- func (x *ListProvidersResponse) ProtoReflect() protoreflect.Message
- func (x *ListProvidersResponse) Reset()
- func (x *ListProvidersResponse) String() string
- type LogResponse
- type Model
- type ModelRequest
- type ModelResponse
- type Provider
- func (*Provider) Descriptor() ([]byte, []int)deprecated
- func (x *Provider) GetConfig() *structpb.Struct
- func (x *Provider) GetDescription() string
- func (x *Provider) GetId() string
- func (x *Provider) GetName() string
- func (x *Provider) GetTitle() string
- func (*Provider) ProtoMessage()
- func (x *Provider) ProtoReflect() protoreflect.Message
- func (x *Provider) Reset()
- func (x *Provider) String() string
- type ProviderModels
- func (*ProviderModels) Descriptor() ([]byte, []int)deprecated
- func (x *ProviderModels) GetModels() []*Model
- func (x *ProviderModels) GetName() string
- func (*ProviderModels) ProtoMessage()
- func (x *ProviderModels) ProtoReflect() protoreflect.Message
- func (x *ProviderModels) Reset()
- func (x *ProviderModels) String() string
- type ResponseFormat
- type Role
- func (*Role) Descriptor() ([]byte, []int)deprecated
- func (x *Role) GetAssistant() string
- func (m *Role) GetRole() isRole_Role
- func (x *Role) GetSystem() string
- func (x *Role) GetUser() string
- func (*Role) ProtoMessage()
- func (x *Role) ProtoReflect() protoreflect.Message
- func (x *Role) Reset()
- func (x *Role) String() string
- type Role_Assistant
- type Role_System
- type Role_User
- type ToolCallMessage
- func (*ToolCallMessage) Descriptor() ([]byte, []int)deprecated
- func (x *ToolCallMessage) GetFunction() *Function
- func (x *ToolCallMessage) GetId() string
- func (x *ToolCallMessage) GetType() string
- func (*ToolCallMessage) ProtoMessage()
- func (x *ToolCallMessage) ProtoReflect() protoreflect.Message
- func (x *ToolCallMessage) Reset()
- func (x *ToolCallMessage) String() string
- type UpdateAPIKeyRequest
- func (*UpdateAPIKeyRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateAPIKeyRequest) GetId() string
- func (x *UpdateAPIKeyRequest) GetName() string
- func (*UpdateAPIKeyRequest) ProtoMessage()
- func (x *UpdateAPIKeyRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateAPIKeyRequest) Reset()
- func (x *UpdateAPIKeyRequest) String() string
- type UpdateAPIKeyResponse
- func (*UpdateAPIKeyResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateAPIKeyResponse) GetKey() *APIKey
- func (*UpdateAPIKeyResponse) ProtoMessage()
- func (x *UpdateAPIKeyResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateAPIKeyResponse) Reset()
- func (x *UpdateAPIKeyResponse) String() string
- type UpdateProviderRequest
- func (*UpdateProviderRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateProviderRequest) GetConfig() *structpb.Struct
- func (x *UpdateProviderRequest) GetName() string
- func (*UpdateProviderRequest) ProtoMessage()
- func (x *UpdateProviderRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateProviderRequest) Reset()
- func (x *UpdateProviderRequest) String() string
- type UpdateProviderResponse
- func (*UpdateProviderResponse) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateProviderResponse) GetConfig() *structpb.Struct
- func (x *UpdateProviderResponse) GetName() string
- func (*UpdateProviderResponse) ProtoMessage()
- func (x *UpdateProviderResponse) ProtoReflect() protoreflect.Message
- func (x *UpdateProviderResponse) Reset()
- func (x *UpdateProviderResponse) String() string
- type Usage
- func (*Usage) Descriptor() ([]byte, []int)deprecated
- func (x *Usage) GetCompletionTokens() int32
- func (x *Usage) GetPromptTokens() int32
- func (x *Usage) GetTotalTokens() int32
- func (*Usage) ProtoMessage()
- func (x *Usage) ProtoReflect() protoreflect.Message
- func (x *Usage) Reset()
- func (x *Usage) String() string
Constants ¶
This section is empty.
Variables ¶
var ( FinishReason_name = map[int32]string{ 0: "FINISH_REASON_UNSPECIFIED", 1: "FINISH_REASON_LENGTH", 2: "FINISH_REASON_STOP", 3: "FINISH_REASON_ERROR", } FinishReason_value = map[string]int32{ "FINISH_REASON_UNSPECIFIED": 0, "FINISH_REASON_LENGTH": 1, "FINISH_REASON_STOP": 2, "FINISH_REASON_ERROR": 3, } )
Enum value maps for FinishReason.
var File_llm_v1_models_proto protoreflect.FileDescriptor
var File_llm_v1_service_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type APIKey ¶
type APIKey struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"` MaskedValue string `protobuf:"bytes,4,opt,name=masked_value,json=maskedValue,proto3" json:"masked_value,omitempty"` CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"` LastUsedAt *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=last_used_at,json=lastUsedAt,proto3" json:"last_used_at,omitempty"` // contains filtered or unexported fields }
func (*APIKey) Descriptor
deprecated
func (*APIKey) GetCreatedAt ¶
func (x *APIKey) GetCreatedAt() *timestamppb.Timestamp
func (*APIKey) GetLastUsedAt ¶
func (x *APIKey) GetLastUsedAt() *timestamppb.Timestamp
func (*APIKey) GetMaskedValue ¶
func (*APIKey) ProtoMessage ¶
func (*APIKey) ProtoMessage()
func (*APIKey) ProtoReflect ¶
func (x *APIKey) ProtoReflect() protoreflect.Message
type ChatCompletionMessage ¶
type ChatCompletionMessage struct { // role of the message author. One of "system", "user", "assistant". Role string `protobuf:"bytes,1,opt,name=role,proto3" json:"role,omitempty"` // content of the message Content string `protobuf:"bytes,2,opt,name=content,proto3" json:"content,omitempty"` Logprobs *structpb.Struct `protobuf:"bytes,3,opt,name=logprobs,proto3" json:"logprobs,omitempty"` ToolCalls []*ToolCallMessage `protobuf:"bytes,4,rep,name=tool_calls,json=toolCalls,proto3" json:"tool_calls,omitempty"` // contains filtered or unexported fields }
func (*ChatCompletionMessage) Descriptor
deprecated
func (*ChatCompletionMessage) Descriptor() ([]byte, []int)
Deprecated: Use ChatCompletionMessage.ProtoReflect.Descriptor instead.
func (*ChatCompletionMessage) GetContent ¶
func (x *ChatCompletionMessage) GetContent() string
func (*ChatCompletionMessage) GetLogprobs ¶
func (x *ChatCompletionMessage) GetLogprobs() *structpb.Struct
func (*ChatCompletionMessage) GetRole ¶
func (x *ChatCompletionMessage) GetRole() string
func (*ChatCompletionMessage) GetToolCalls ¶
func (x *ChatCompletionMessage) GetToolCalls() []*ToolCallMessage
func (*ChatCompletionMessage) ProtoMessage ¶
func (*ChatCompletionMessage) ProtoMessage()
func (*ChatCompletionMessage) ProtoReflect ¶
func (x *ChatCompletionMessage) ProtoReflect() protoreflect.Message
func (*ChatCompletionMessage) Reset ¶
func (x *ChatCompletionMessage) Reset()
func (*ChatCompletionMessage) String ¶
func (x *ChatCompletionMessage) String() string
type ChatCompletionRequest ¶
type ChatCompletionRequest struct { Model string `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"` // a list of messages comprising all the conversation so far Messages []*ChatCompletionMessage `protobuf:"bytes,2,rep,name=messages,proto3" json:"messages,omitempty"` // temperature of the sampling, between [0, 2]. default = 1.0 Temperature *float32 `protobuf:"fixed32,3,opt,name=temperature,proto3,oneof" json:"temperature,omitempty"` Seed *uint64 `protobuf:"varint,4,opt,name=seed,proto3,oneof" json:"seed,omitempty"` // number of chat completion choices to generate for each input message. default = 1 N *uint64 `protobuf:"varint,5,opt,name=n,proto3,oneof" json:"n,omitempty"` PresencePenalty *float32 `protobuf:"fixed32,6,opt,name=presence_penalty,json=presencePenalty,proto3,oneof" json:"presence_penalty,omitempty"` FrequencyPenalty *float32 `protobuf:"fixed32,7,opt,name=frequency_penalty,json=frequencyPenalty,proto3,oneof" json:"frequency_penalty,omitempty"` // whether to stream partial completions back as they are generated. default = false Stream *bool `protobuf:"varint,8,opt,name=stream,proto3,oneof" json:"stream,omitempty"` TopK *float32 `protobuf:"fixed32,9,opt,name=top_k,json=topK,proto3,oneof" json:"top_k,omitempty"` TopP *float32 `protobuf:"fixed32,10,opt,name=top_p,json=topP,proto3,oneof" json:"top_p,omitempty"` Stop []string `protobuf:"bytes,11,rep,name=stop,proto3" json:"stop,omitempty"` MaxTokens *uint64 `protobuf:"varint,12,opt,name=max_tokens,json=maxTokens,proto3,oneof" json:"max_tokens,omitempty"` Logprobs *bool `protobuf:"varint,13,opt,name=logprobs,proto3,oneof" json:"logprobs,omitempty"` TopLogprobs *uint64 `protobuf:"varint,14,opt,name=top_logprobs,json=topLogprobs,proto3,oneof" json:"top_logprobs,omitempty"` LogitBias *structpb.Struct `protobuf:"bytes,15,opt,name=logit_bias,json=logitBias,proto3,oneof" json:"logit_bias,omitempty"` ResponseFormat *ResponseFormat `protobuf:"bytes,16,opt,name=response_format,json=responseFormat,proto3,oneof" json:"response_format,omitempty"` User *string `protobuf:"bytes,17,opt,name=user,proto3,oneof" json:"user,omitempty"` ToolChoice *structpb.Struct `protobuf:"bytes,18,opt,name=tool_choice,json=toolChoice,proto3,oneof" json:"tool_choice,omitempty"` Suffix *string `protobuf:"bytes,19,opt,name=suffix,proto3,oneof" json:"suffix,omitempty"` Echo *bool `protobuf:"varint,20,opt,name=echo,proto3,oneof" json:"echo,omitempty"` BestOf *uint64 `protobuf:"varint,21,opt,name=best_of,json=bestOf,proto3,oneof" json:"best_of,omitempty"` // contains filtered or unexported fields }
func (*ChatCompletionRequest) Descriptor
deprecated
func (*ChatCompletionRequest) Descriptor() ([]byte, []int)
Deprecated: Use ChatCompletionRequest.ProtoReflect.Descriptor instead.
func (*ChatCompletionRequest) GetBestOf ¶
func (x *ChatCompletionRequest) GetBestOf() uint64
func (*ChatCompletionRequest) GetEcho ¶
func (x *ChatCompletionRequest) GetEcho() bool
func (*ChatCompletionRequest) GetFrequencyPenalty ¶
func (x *ChatCompletionRequest) GetFrequencyPenalty() float32
func (*ChatCompletionRequest) GetLogitBias ¶
func (x *ChatCompletionRequest) GetLogitBias() *structpb.Struct
func (*ChatCompletionRequest) GetLogprobs ¶
func (x *ChatCompletionRequest) GetLogprobs() bool
func (*ChatCompletionRequest) GetMaxTokens ¶
func (x *ChatCompletionRequest) GetMaxTokens() uint64
func (*ChatCompletionRequest) GetMessages ¶
func (x *ChatCompletionRequest) GetMessages() []*ChatCompletionMessage
func (*ChatCompletionRequest) GetModel ¶
func (x *ChatCompletionRequest) GetModel() string
func (*ChatCompletionRequest) GetN ¶
func (x *ChatCompletionRequest) GetN() uint64
func (*ChatCompletionRequest) GetPresencePenalty ¶
func (x *ChatCompletionRequest) GetPresencePenalty() float32
func (*ChatCompletionRequest) GetResponseFormat ¶
func (x *ChatCompletionRequest) GetResponseFormat() *ResponseFormat
func (*ChatCompletionRequest) GetSeed ¶
func (x *ChatCompletionRequest) GetSeed() uint64
func (*ChatCompletionRequest) GetStop ¶
func (x *ChatCompletionRequest) GetStop() []string
func (*ChatCompletionRequest) GetStream ¶
func (x *ChatCompletionRequest) GetStream() bool
func (*ChatCompletionRequest) GetSuffix ¶
func (x *ChatCompletionRequest) GetSuffix() string
func (*ChatCompletionRequest) GetTemperature ¶
func (x *ChatCompletionRequest) GetTemperature() float32
func (*ChatCompletionRequest) GetToolChoice ¶
func (x *ChatCompletionRequest) GetToolChoice() *structpb.Struct
func (*ChatCompletionRequest) GetTopK ¶
func (x *ChatCompletionRequest) GetTopK() float32
func (*ChatCompletionRequest) GetTopLogprobs ¶
func (x *ChatCompletionRequest) GetTopLogprobs() uint64
func (*ChatCompletionRequest) GetTopP ¶
func (x *ChatCompletionRequest) GetTopP() float32
func (*ChatCompletionRequest) GetUser ¶
func (x *ChatCompletionRequest) GetUser() string
func (*ChatCompletionRequest) ProtoMessage ¶
func (*ChatCompletionRequest) ProtoMessage()
func (*ChatCompletionRequest) ProtoReflect ¶
func (x *ChatCompletionRequest) ProtoReflect() protoreflect.Message
func (*ChatCompletionRequest) Reset ¶
func (x *ChatCompletionRequest) Reset()
func (*ChatCompletionRequest) String ¶
func (x *ChatCompletionRequest) String() string
type ChatCompletionResponse ¶
type ChatCompletionResponse struct { // unique id for the chat completion. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // object type, which is always "chat.completion[.chunk]". Object string `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"` // unix timestamp (in seconds) of when the chat completion was created. Created uint64 `protobuf:"varint,3,opt,name=created,proto3" json:"created,omitempty"` // model used for the completion Model string `protobuf:"bytes,4,opt,name=model,proto3" json:"model,omitempty"` // list of generated completion choices for the input prompt Choices []*CompletionChoice `protobuf:"bytes,5,rep,name=choices,proto3" json:"choices,omitempty"` // usage statistics for the completion request. Usage *Usage `protobuf:"bytes,6,opt,name=usage,proto3" json:"usage,omitempty"` Cached bool `protobuf:"varint,7,opt,name=cached,proto3" json:"cached,omitempty"` // contains filtered or unexported fields }
func (*ChatCompletionResponse) Descriptor
deprecated
func (*ChatCompletionResponse) Descriptor() ([]byte, []int)
Deprecated: Use ChatCompletionResponse.ProtoReflect.Descriptor instead.
func (*ChatCompletionResponse) GetCached ¶
func (x *ChatCompletionResponse) GetCached() bool
func (*ChatCompletionResponse) GetChoices ¶
func (x *ChatCompletionResponse) GetChoices() []*CompletionChoice
func (*ChatCompletionResponse) GetCreated ¶
func (x *ChatCompletionResponse) GetCreated() uint64
func (*ChatCompletionResponse) GetId ¶
func (x *ChatCompletionResponse) GetId() string
func (*ChatCompletionResponse) GetModel ¶
func (x *ChatCompletionResponse) GetModel() string
func (*ChatCompletionResponse) GetObject ¶
func (x *ChatCompletionResponse) GetObject() string
func (*ChatCompletionResponse) GetUsage ¶
func (x *ChatCompletionResponse) GetUsage() *Usage
func (*ChatCompletionResponse) ProtoMessage ¶
func (*ChatCompletionResponse) ProtoMessage()
func (*ChatCompletionResponse) ProtoReflect ¶
func (x *ChatCompletionResponse) ProtoReflect() protoreflect.Message
func (*ChatCompletionResponse) Reset ¶
func (x *ChatCompletionResponse) Reset()
func (*ChatCompletionResponse) String ¶
func (x *ChatCompletionResponse) String() string
type CompletionChoice ¶
type CompletionChoice struct { // index of the choice in the list of choices. Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` // message generated by the model. Message *ChatCompletionMessage `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Logprobs *structpb.Struct `protobuf:"bytes,3,opt,name=logprobs,proto3" json:"logprobs,omitempty"` FinishReason string `protobuf:"bytes,4,opt,name=finish_reason,json=finishReason,proto3" json:"finish_reason,omitempty"` // contains filtered or unexported fields }
func (*CompletionChoice) Descriptor
deprecated
func (*CompletionChoice) Descriptor() ([]byte, []int)
Deprecated: Use CompletionChoice.ProtoReflect.Descriptor instead.
func (*CompletionChoice) GetFinishReason ¶
func (x *CompletionChoice) GetFinishReason() string
func (*CompletionChoice) GetIndex ¶
func (x *CompletionChoice) GetIndex() uint32
func (*CompletionChoice) GetLogprobs ¶
func (x *CompletionChoice) GetLogprobs() *structpb.Struct
func (*CompletionChoice) GetMessage ¶
func (x *CompletionChoice) GetMessage() *ChatCompletionMessage
func (*CompletionChoice) ProtoMessage ¶
func (*CompletionChoice) ProtoMessage()
func (*CompletionChoice) ProtoReflect ¶
func (x *CompletionChoice) ProtoReflect() protoreflect.Message
func (*CompletionChoice) Reset ¶
func (x *CompletionChoice) Reset()
func (*CompletionChoice) String ¶
func (x *CompletionChoice) String() string
type CreateAPIKeyRequest ¶
type CreateAPIKeyRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*CreateAPIKeyRequest) Descriptor
deprecated
func (*CreateAPIKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateAPIKeyRequest.ProtoReflect.Descriptor instead.
func (*CreateAPIKeyRequest) GetName ¶
func (x *CreateAPIKeyRequest) GetName() string
func (*CreateAPIKeyRequest) ProtoMessage ¶
func (*CreateAPIKeyRequest) ProtoMessage()
func (*CreateAPIKeyRequest) ProtoReflect ¶
func (x *CreateAPIKeyRequest) ProtoReflect() protoreflect.Message
func (*CreateAPIKeyRequest) Reset ¶
func (x *CreateAPIKeyRequest) Reset()
func (*CreateAPIKeyRequest) String ¶
func (x *CreateAPIKeyRequest) String() string
type CreateAPIKeyResponse ¶
type CreateAPIKeyResponse struct { Key *APIKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*CreateAPIKeyResponse) Descriptor
deprecated
func (*CreateAPIKeyResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateAPIKeyResponse.ProtoReflect.Descriptor instead.
func (*CreateAPIKeyResponse) GetKey ¶
func (x *CreateAPIKeyResponse) GetKey() *APIKey
func (*CreateAPIKeyResponse) ProtoMessage ¶
func (*CreateAPIKeyResponse) ProtoMessage()
func (*CreateAPIKeyResponse) ProtoReflect ¶
func (x *CreateAPIKeyResponse) ProtoReflect() protoreflect.Message
func (*CreateAPIKeyResponse) Reset ¶
func (x *CreateAPIKeyResponse) Reset()
func (*CreateAPIKeyResponse) String ¶
func (x *CreateAPIKeyResponse) String() string
type CreateProviderRequest ¶
type CreateProviderRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Config *structpb.Struct `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` // contains filtered or unexported fields }
func (*CreateProviderRequest) Descriptor
deprecated
func (*CreateProviderRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateProviderRequest.ProtoReflect.Descriptor instead.
func (*CreateProviderRequest) GetConfig ¶
func (x *CreateProviderRequest) GetConfig() *structpb.Struct
func (*CreateProviderRequest) GetName ¶
func (x *CreateProviderRequest) GetName() string
func (*CreateProviderRequest) ProtoMessage ¶
func (*CreateProviderRequest) ProtoMessage()
func (*CreateProviderRequest) ProtoReflect ¶
func (x *CreateProviderRequest) ProtoReflect() protoreflect.Message
func (*CreateProviderRequest) Reset ¶
func (x *CreateProviderRequest) Reset()
func (*CreateProviderRequest) String ¶
func (x *CreateProviderRequest) String() string
type CreateProviderResponse ¶
type CreateProviderResponse struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Config *structpb.Struct `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` // contains filtered or unexported fields }
func (*CreateProviderResponse) Descriptor
deprecated
func (*CreateProviderResponse) Descriptor() ([]byte, []int)
Deprecated: Use CreateProviderResponse.ProtoReflect.Descriptor instead.
func (*CreateProviderResponse) GetConfig ¶
func (x *CreateProviderResponse) GetConfig() *structpb.Struct
func (*CreateProviderResponse) GetName ¶
func (x *CreateProviderResponse) GetName() string
func (*CreateProviderResponse) ProtoMessage ¶
func (*CreateProviderResponse) ProtoMessage()
func (*CreateProviderResponse) ProtoReflect ¶
func (x *CreateProviderResponse) ProtoReflect() protoreflect.Message
func (*CreateProviderResponse) Reset ¶
func (x *CreateProviderResponse) Reset()
func (*CreateProviderResponse) String ¶
func (x *CreateProviderResponse) String() string
type DeleteAPIKeyRequest ¶
type DeleteAPIKeyRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*DeleteAPIKeyRequest) Descriptor
deprecated
func (*DeleteAPIKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteAPIKeyRequest.ProtoReflect.Descriptor instead.
func (*DeleteAPIKeyRequest) GetId ¶
func (x *DeleteAPIKeyRequest) GetId() string
func (*DeleteAPIKeyRequest) ProtoMessage ¶
func (*DeleteAPIKeyRequest) ProtoMessage()
func (*DeleteAPIKeyRequest) ProtoReflect ¶
func (x *DeleteAPIKeyRequest) ProtoReflect() protoreflect.Message
func (*DeleteAPIKeyRequest) Reset ¶
func (x *DeleteAPIKeyRequest) Reset()
func (*DeleteAPIKeyRequest) String ¶
func (x *DeleteAPIKeyRequest) String() string
type DeleteProviderRequest ¶
type DeleteProviderRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*DeleteProviderRequest) Descriptor
deprecated
func (*DeleteProviderRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteProviderRequest.ProtoReflect.Descriptor instead.
func (*DeleteProviderRequest) GetName ¶
func (x *DeleteProviderRequest) GetName() string
func (*DeleteProviderRequest) ProtoMessage ¶
func (*DeleteProviderRequest) ProtoMessage()
func (*DeleteProviderRequest) ProtoReflect ¶
func (x *DeleteProviderRequest) ProtoReflect() protoreflect.Message
func (*DeleteProviderRequest) Reset ¶
func (x *DeleteProviderRequest) Reset()
func (*DeleteProviderRequest) String ¶
func (x *DeleteProviderRequest) String() string
type FinishReason ¶
type FinishReason int32
const ( FinishReason_FINISH_REASON_UNSPECIFIED FinishReason = 0 FinishReason_FINISH_REASON_LENGTH FinishReason = 1 FinishReason_FINISH_REASON_STOP FinishReason = 2 FinishReason_FINISH_REASON_ERROR FinishReason = 3 )
func (FinishReason) Descriptor ¶
func (FinishReason) Descriptor() protoreflect.EnumDescriptor
func (FinishReason) Enum ¶
func (x FinishReason) Enum() *FinishReason
func (FinishReason) EnumDescriptor
deprecated
func (FinishReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use FinishReason.Descriptor instead.
func (FinishReason) Number ¶
func (x FinishReason) Number() protoreflect.EnumNumber
func (FinishReason) String ¶
func (x FinishReason) String() string
func (FinishReason) Type ¶
func (FinishReason) Type() protoreflect.EnumType
type Function ¶
type Function struct { Name string `protobuf:"bytes,1,opt,name=Name,proto3" json:"Name,omitempty"` Arguments string `protobuf:"bytes,2,opt,name=Arguments,proto3" json:"Arguments,omitempty"` // contains filtered or unexported fields }
func (*Function) Descriptor
deprecated
func (*Function) GetArguments ¶
func (*Function) ProtoMessage ¶
func (*Function) ProtoMessage()
func (*Function) ProtoReflect ¶
func (x *Function) ProtoReflect() protoreflect.Message
type GetAPIKeyRequest ¶
type GetAPIKeyRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` // contains filtered or unexported fields }
func (*GetAPIKeyRequest) Descriptor
deprecated
func (*GetAPIKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAPIKeyRequest.ProtoReflect.Descriptor instead.
func (*GetAPIKeyRequest) GetId ¶
func (x *GetAPIKeyRequest) GetId() string
func (*GetAPIKeyRequest) ProtoMessage ¶
func (*GetAPIKeyRequest) ProtoMessage()
func (*GetAPIKeyRequest) ProtoReflect ¶
func (x *GetAPIKeyRequest) ProtoReflect() protoreflect.Message
func (*GetAPIKeyRequest) Reset ¶
func (x *GetAPIKeyRequest) Reset()
func (*GetAPIKeyRequest) String ¶
func (x *GetAPIKeyRequest) String() string
type GetAPIKeyResponse ¶
type GetAPIKeyResponse struct { Key *APIKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*GetAPIKeyResponse) Descriptor
deprecated
func (*GetAPIKeyResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAPIKeyResponse.ProtoReflect.Descriptor instead.
func (*GetAPIKeyResponse) GetKey ¶
func (x *GetAPIKeyResponse) GetKey() *APIKey
func (*GetAPIKeyResponse) ProtoMessage ¶
func (*GetAPIKeyResponse) ProtoMessage()
func (*GetAPIKeyResponse) ProtoReflect ¶
func (x *GetAPIKeyResponse) ProtoReflect() protoreflect.Message
func (*GetAPIKeyResponse) Reset ¶
func (x *GetAPIKeyResponse) Reset()
func (*GetAPIKeyResponse) String ¶
func (x *GetAPIKeyResponse) String() string
type GetProviderConfigRequest ¶
type GetProviderConfigRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetProviderConfigRequest) Descriptor
deprecated
func (*GetProviderConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetProviderConfigRequest.ProtoReflect.Descriptor instead.
func (*GetProviderConfigRequest) GetName ¶
func (x *GetProviderConfigRequest) GetName() string
func (*GetProviderConfigRequest) ProtoMessage ¶
func (*GetProviderConfigRequest) ProtoMessage()
func (*GetProviderConfigRequest) ProtoReflect ¶
func (x *GetProviderConfigRequest) ProtoReflect() protoreflect.Message
func (*GetProviderConfigRequest) Reset ¶
func (x *GetProviderConfigRequest) Reset()
func (*GetProviderConfigRequest) String ¶
func (x *GetProviderConfigRequest) String() string
type GetProviderConfigResponse ¶
type GetProviderConfigResponse struct { Config *structpb.Struct `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` // contains filtered or unexported fields }
func (*GetProviderConfigResponse) Descriptor
deprecated
func (*GetProviderConfigResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetProviderConfigResponse.ProtoReflect.Descriptor instead.
func (*GetProviderConfigResponse) GetConfig ¶
func (x *GetProviderConfigResponse) GetConfig() *structpb.Struct
func (*GetProviderConfigResponse) ProtoMessage ¶
func (*GetProviderConfigResponse) ProtoMessage()
func (*GetProviderConfigResponse) ProtoReflect ¶
func (x *GetProviderConfigResponse) ProtoReflect() protoreflect.Message
func (*GetProviderConfigResponse) Reset ¶
func (x *GetProviderConfigResponse) Reset()
func (*GetProviderConfigResponse) String ¶
func (x *GetProviderConfigResponse) String() string
type GetProviderRequest ¶
type GetProviderRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*GetProviderRequest) Descriptor
deprecated
func (*GetProviderRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetProviderRequest.ProtoReflect.Descriptor instead.
func (*GetProviderRequest) GetName ¶
func (x *GetProviderRequest) GetName() string
func (*GetProviderRequest) ProtoMessage ¶
func (*GetProviderRequest) ProtoMessage()
func (*GetProviderRequest) ProtoReflect ¶
func (x *GetProviderRequest) ProtoReflect() protoreflect.Message
func (*GetProviderRequest) Reset ¶
func (x *GetProviderRequest) Reset()
func (*GetProviderRequest) String ¶
func (x *GetProviderRequest) String() string
type GetProviderResponse ¶
type GetProviderResponse struct { Provider *Provider `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` // contains filtered or unexported fields }
func (*GetProviderResponse) Descriptor
deprecated
func (*GetProviderResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetProviderResponse.ProtoReflect.Descriptor instead.
func (*GetProviderResponse) GetProvider ¶
func (x *GetProviderResponse) GetProvider() *Provider
func (*GetProviderResponse) ProtoMessage ¶
func (*GetProviderResponse) ProtoMessage()
func (*GetProviderResponse) ProtoReflect ¶
func (x *GetProviderResponse) ProtoReflect() protoreflect.Message
func (*GetProviderResponse) Reset ¶
func (x *GetProviderResponse) Reset()
func (*GetProviderResponse) String ¶
func (x *GetProviderResponse) String() string
type ListAPIKeysResponse ¶
type ListAPIKeysResponse struct { Keys []*APIKey `protobuf:"bytes,1,rep,name=keys,proto3" json:"keys,omitempty"` // contains filtered or unexported fields }
func (*ListAPIKeysResponse) Descriptor
deprecated
func (*ListAPIKeysResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListAPIKeysResponse.ProtoReflect.Descriptor instead.
func (*ListAPIKeysResponse) GetKeys ¶
func (x *ListAPIKeysResponse) GetKeys() []*APIKey
func (*ListAPIKeysResponse) ProtoMessage ¶
func (*ListAPIKeysResponse) ProtoMessage()
func (*ListAPIKeysResponse) ProtoReflect ¶
func (x *ListAPIKeysResponse) ProtoReflect() protoreflect.Message
func (*ListAPIKeysResponse) Reset ¶
func (x *ListAPIKeysResponse) Reset()
func (*ListAPIKeysResponse) String ¶
func (x *ListAPIKeysResponse) String() string
type ListProvidersResponse ¶
type ListProvidersResponse struct { Providers []*Provider `protobuf:"bytes,1,rep,name=providers,proto3" json:"providers,omitempty"` // contains filtered or unexported fields }
func (*ListProvidersResponse) Descriptor
deprecated
func (*ListProvidersResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListProvidersResponse.ProtoReflect.Descriptor instead.
func (*ListProvidersResponse) GetProviders ¶
func (x *ListProvidersResponse) GetProviders() []*Provider
func (*ListProvidersResponse) ProtoMessage ¶
func (*ListProvidersResponse) ProtoMessage()
func (*ListProvidersResponse) ProtoReflect ¶
func (x *ListProvidersResponse) ProtoReflect() protoreflect.Message
func (*ListProvidersResponse) Reset ¶
func (x *ListProvidersResponse) Reset()
func (*ListProvidersResponse) String ¶
func (x *ListProvidersResponse) String() string
type LogResponse ¶
type LogResponse struct { Logs []*structpb.Struct `protobuf:"bytes,1,rep,name=logs,proto3" json:"logs,omitempty"` // contains filtered or unexported fields }
func (*LogResponse) Descriptor
deprecated
func (*LogResponse) Descriptor() ([]byte, []int)
Deprecated: Use LogResponse.ProtoReflect.Descriptor instead.
func (*LogResponse) GetLogs ¶
func (x *LogResponse) GetLogs() []*structpb.Struct
func (*LogResponse) ProtoMessage ¶
func (*LogResponse) ProtoMessage()
func (*LogResponse) ProtoReflect ¶
func (x *LogResponse) ProtoReflect() protoreflect.Message
func (*LogResponse) Reset ¶
func (x *LogResponse) Reset()
func (*LogResponse) String ¶
func (x *LogResponse) String() string
type Model ¶
type Model struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*Model) Descriptor
deprecated
func (*Model) ProtoMessage ¶
func (*Model) ProtoMessage()
func (*Model) ProtoReflect ¶
func (x *Model) ProtoReflect() protoreflect.Message
type ModelRequest ¶
type ModelRequest struct { Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` // contains filtered or unexported fields }
func (*ModelRequest) Descriptor
deprecated
func (*ModelRequest) Descriptor() ([]byte, []int)
Deprecated: Use ModelRequest.ProtoReflect.Descriptor instead.
func (*ModelRequest) GetProvider ¶
func (x *ModelRequest) GetProvider() string
func (*ModelRequest) ProtoMessage ¶
func (*ModelRequest) ProtoMessage()
func (*ModelRequest) ProtoReflect ¶
func (x *ModelRequest) ProtoReflect() protoreflect.Message
func (*ModelRequest) Reset ¶
func (x *ModelRequest) Reset()
func (*ModelRequest) String ¶
func (x *ModelRequest) String() string
type ModelResponse ¶
type ModelResponse struct { Models map[string]*ProviderModels `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*ModelResponse) Descriptor
deprecated
func (*ModelResponse) Descriptor() ([]byte, []int)
Deprecated: Use ModelResponse.ProtoReflect.Descriptor instead.
func (*ModelResponse) GetModels ¶
func (x *ModelResponse) GetModels() map[string]*ProviderModels
func (*ModelResponse) ProtoMessage ¶
func (*ModelResponse) ProtoMessage()
func (*ModelResponse) ProtoReflect ¶
func (x *ModelResponse) ProtoReflect() protoreflect.Message
func (*ModelResponse) Reset ¶
func (x *ModelResponse) Reset()
func (*ModelResponse) String ¶
func (x *ModelResponse) String() string
type Provider ¶
type Provider struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"` Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"` Config *structpb.Struct `protobuf:"bytes,5,opt,name=config,proto3" json:"config,omitempty"` // contains filtered or unexported fields }
func (*Provider) Descriptor
deprecated
func (*Provider) GetDescription ¶
func (*Provider) ProtoMessage ¶
func (*Provider) ProtoMessage()
func (*Provider) ProtoReflect ¶
func (x *Provider) ProtoReflect() protoreflect.Message
type ProviderModels ¶
type ProviderModels struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Models []*Model `protobuf:"bytes,2,rep,name=models,proto3" json:"models,omitempty"` // contains filtered or unexported fields }
func (*ProviderModels) Descriptor
deprecated
func (*ProviderModels) Descriptor() ([]byte, []int)
Deprecated: Use ProviderModels.ProtoReflect.Descriptor instead.
func (*ProviderModels) GetModels ¶
func (x *ProviderModels) GetModels() []*Model
func (*ProviderModels) GetName ¶
func (x *ProviderModels) GetName() string
func (*ProviderModels) ProtoMessage ¶
func (*ProviderModels) ProtoMessage()
func (*ProviderModels) ProtoReflect ¶
func (x *ProviderModels) ProtoReflect() protoreflect.Message
func (*ProviderModels) Reset ¶
func (x *ProviderModels) Reset()
func (*ProviderModels) String ¶
func (x *ProviderModels) String() string
type ResponseFormat ¶
type ResponseFormat struct { Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"` // contains filtered or unexported fields }
func (*ResponseFormat) Descriptor
deprecated
func (*ResponseFormat) Descriptor() ([]byte, []int)
Deprecated: Use ResponseFormat.ProtoReflect.Descriptor instead.
func (*ResponseFormat) GetType ¶
func (x *ResponseFormat) GetType() string
func (*ResponseFormat) ProtoMessage ¶
func (*ResponseFormat) ProtoMessage()
func (*ResponseFormat) ProtoReflect ¶
func (x *ResponseFormat) ProtoReflect() protoreflect.Message
func (*ResponseFormat) Reset ¶
func (x *ResponseFormat) Reset()
func (*ResponseFormat) String ¶
func (x *ResponseFormat) String() string
type Role ¶
type Role struct { // Types that are assignable to Role: // // *Role_System // *Role_User // *Role_Assistant Role isRole_Role `protobuf_oneof:"role"` // contains filtered or unexported fields }
func (*Role) Descriptor
deprecated
func (*Role) GetAssistant ¶
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶
func (x *Role) ProtoReflect() protoreflect.Message
type Role_Assistant ¶
type Role_Assistant struct {
Assistant string `protobuf:"bytes,3,opt,name=assistant,proto3,oneof"`
}
type Role_System ¶
type Role_System struct {
System string `protobuf:"bytes,1,opt,name=system,proto3,oneof"`
}
type Role_User ¶
type Role_User struct {
User string `protobuf:"bytes,2,opt,name=user,proto3,oneof"`
}
type ToolCallMessage ¶
type ToolCallMessage struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Function *Function `protobuf:"bytes,3,opt,name=function,proto3" json:"function,omitempty"` // contains filtered or unexported fields }
func (*ToolCallMessage) Descriptor
deprecated
func (*ToolCallMessage) Descriptor() ([]byte, []int)
Deprecated: Use ToolCallMessage.ProtoReflect.Descriptor instead.
func (*ToolCallMessage) GetFunction ¶
func (x *ToolCallMessage) GetFunction() *Function
func (*ToolCallMessage) GetId ¶
func (x *ToolCallMessage) GetId() string
func (*ToolCallMessage) GetType ¶
func (x *ToolCallMessage) GetType() string
func (*ToolCallMessage) ProtoMessage ¶
func (*ToolCallMessage) ProtoMessage()
func (*ToolCallMessage) ProtoReflect ¶
func (x *ToolCallMessage) ProtoReflect() protoreflect.Message
func (*ToolCallMessage) Reset ¶
func (x *ToolCallMessage) Reset()
func (*ToolCallMessage) String ¶
func (x *ToolCallMessage) String() string
type UpdateAPIKeyRequest ¶
type UpdateAPIKeyRequest struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"` // contains filtered or unexported fields }
func (*UpdateAPIKeyRequest) Descriptor
deprecated
func (*UpdateAPIKeyRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAPIKeyRequest.ProtoReflect.Descriptor instead.
func (*UpdateAPIKeyRequest) GetId ¶
func (x *UpdateAPIKeyRequest) GetId() string
func (*UpdateAPIKeyRequest) GetName ¶
func (x *UpdateAPIKeyRequest) GetName() string
func (*UpdateAPIKeyRequest) ProtoMessage ¶
func (*UpdateAPIKeyRequest) ProtoMessage()
func (*UpdateAPIKeyRequest) ProtoReflect ¶
func (x *UpdateAPIKeyRequest) ProtoReflect() protoreflect.Message
func (*UpdateAPIKeyRequest) Reset ¶
func (x *UpdateAPIKeyRequest) Reset()
func (*UpdateAPIKeyRequest) String ¶
func (x *UpdateAPIKeyRequest) String() string
type UpdateAPIKeyResponse ¶
type UpdateAPIKeyResponse struct { Key *APIKey `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` // contains filtered or unexported fields }
func (*UpdateAPIKeyResponse) Descriptor
deprecated
func (*UpdateAPIKeyResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateAPIKeyResponse.ProtoReflect.Descriptor instead.
func (*UpdateAPIKeyResponse) GetKey ¶
func (x *UpdateAPIKeyResponse) GetKey() *APIKey
func (*UpdateAPIKeyResponse) ProtoMessage ¶
func (*UpdateAPIKeyResponse) ProtoMessage()
func (*UpdateAPIKeyResponse) ProtoReflect ¶
func (x *UpdateAPIKeyResponse) ProtoReflect() protoreflect.Message
func (*UpdateAPIKeyResponse) Reset ¶
func (x *UpdateAPIKeyResponse) Reset()
func (*UpdateAPIKeyResponse) String ¶
func (x *UpdateAPIKeyResponse) String() string
type UpdateProviderRequest ¶
type UpdateProviderRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Config *structpb.Struct `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` // contains filtered or unexported fields }
func (*UpdateProviderRequest) Descriptor
deprecated
func (*UpdateProviderRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateProviderRequest.ProtoReflect.Descriptor instead.
func (*UpdateProviderRequest) GetConfig ¶
func (x *UpdateProviderRequest) GetConfig() *structpb.Struct
func (*UpdateProviderRequest) GetName ¶
func (x *UpdateProviderRequest) GetName() string
func (*UpdateProviderRequest) ProtoMessage ¶
func (*UpdateProviderRequest) ProtoMessage()
func (*UpdateProviderRequest) ProtoReflect ¶
func (x *UpdateProviderRequest) ProtoReflect() protoreflect.Message
func (*UpdateProviderRequest) Reset ¶
func (x *UpdateProviderRequest) Reset()
func (*UpdateProviderRequest) String ¶
func (x *UpdateProviderRequest) String() string
type UpdateProviderResponse ¶
type UpdateProviderResponse struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Config *structpb.Struct `protobuf:"bytes,2,opt,name=config,proto3" json:"config,omitempty"` // contains filtered or unexported fields }
func (*UpdateProviderResponse) Descriptor
deprecated
func (*UpdateProviderResponse) Descriptor() ([]byte, []int)
Deprecated: Use UpdateProviderResponse.ProtoReflect.Descriptor instead.
func (*UpdateProviderResponse) GetConfig ¶
func (x *UpdateProviderResponse) GetConfig() *structpb.Struct
func (*UpdateProviderResponse) GetName ¶
func (x *UpdateProviderResponse) GetName() string
func (*UpdateProviderResponse) ProtoMessage ¶
func (*UpdateProviderResponse) ProtoMessage()
func (*UpdateProviderResponse) ProtoReflect ¶
func (x *UpdateProviderResponse) ProtoReflect() protoreflect.Message
func (*UpdateProviderResponse) Reset ¶
func (x *UpdateProviderResponse) Reset()
func (*UpdateProviderResponse) String ¶
func (x *UpdateProviderResponse) String() string
type Usage ¶
type Usage struct { // number of tokens in the prompt. PromptTokens *int32 `protobuf:"varint,1,opt,name=prompt_tokens,json=promptTokens,proto3,oneof" json:"prompt_tokens,omitempty"` // number of tokens in the generated completion. CompletionTokens *int32 `protobuf:"varint,2,opt,name=completion_tokens,json=completionTokens,proto3,oneof" json:"completion_tokens,omitempty"` // total number of tokens used in the request (prompt + completion). TotalTokens *int32 `protobuf:"varint,3,opt,name=total_tokens,json=totalTokens,proto3,oneof" json:"total_tokens,omitempty"` // contains filtered or unexported fields }
func (*Usage) Descriptor
deprecated
func (*Usage) GetCompletionTokens ¶
func (*Usage) GetPromptTokens ¶
func (*Usage) GetTotalTokens ¶
func (*Usage) ProtoMessage ¶
func (*Usage) ProtoMessage()
func (*Usage) ProtoReflect ¶
func (x *Usage) ProtoReflect() protoreflect.Message