Documentation ¶
Index ¶
- Variables
- type CompletionRequest
- func (*CompletionRequest) Descriptor() ([]byte, []int)deprecated
- func (x *CompletionRequest) GetBestOf() uint32
- func (x *CompletionRequest) GetCompletionConfig() string
- func (x *CompletionRequest) GetEcho() bool
- func (x *CompletionRequest) GetFrequencyPenalty() float32
- func (x *CompletionRequest) GetLogitBias() map[string]float32
- func (x *CompletionRequest) GetLogprobs() uint32
- func (x *CompletionRequest) GetMaxTokens() uint32
- func (x *CompletionRequest) GetN() uint32
- func (x *CompletionRequest) GetPresencePenalty() float32
- func (x *CompletionRequest) GetPrompts() []string
- func (x *CompletionRequest) GetStops() []string
- func (x *CompletionRequest) GetStream() bool
- func (x *CompletionRequest) GetSuffix() string
- func (x *CompletionRequest) GetTemperature() float32
- func (x *CompletionRequest) GetTopP() float32
- func (x *CompletionRequest) GetUser() string
- func (*CompletionRequest) ProtoMessage()
- func (x *CompletionRequest) ProtoReflect() protoreflect.Message
- func (x *CompletionRequest) Reset()
- func (x *CompletionRequest) String() string
- type CompletionResponse
- func (*CompletionResponse) Descriptor() ([]byte, []int)deprecated
- func (x *CompletionResponse) GetChoices() []*CompletionResponse_Choice
- func (x *CompletionResponse) GetCreated() uint64
- func (x *CompletionResponse) GetId() string
- func (x *CompletionResponse) GetModel() string
- func (x *CompletionResponse) GetObject() string
- func (x *CompletionResponse) GetPromptFilterResults() []*PromptFilterResult
- func (x *CompletionResponse) GetUsage() *CompletionResponse_Usage
- func (*CompletionResponse) ProtoMessage()
- func (x *CompletionResponse) ProtoReflect() protoreflect.Message
- func (x *CompletionResponse) Reset()
- func (x *CompletionResponse) String() string
- type CompletionResponse_Choice
- func (*CompletionResponse_Choice) Descriptor() ([]byte, []int)deprecated
- func (x *CompletionResponse_Choice) GetContentFilterResult() *ContentFilterChoiceResult
- func (x *CompletionResponse_Choice) GetFinishReason() string
- func (x *CompletionResponse_Choice) GetIndex() uint32
- func (x *CompletionResponse_Choice) GetLogprobs() *CompletionResponse_Choice_LogProbs
- func (x *CompletionResponse_Choice) GetText() string
- func (*CompletionResponse_Choice) ProtoMessage()
- func (x *CompletionResponse_Choice) ProtoReflect() protoreflect.Message
- func (x *CompletionResponse_Choice) Reset()
- func (x *CompletionResponse_Choice) String() string
- type CompletionResponse_Choice_LogProbs
- func (*CompletionResponse_Choice_LogProbs) Descriptor() ([]byte, []int)deprecated
- func (x *CompletionResponse_Choice_LogProbs) GetTextOffsets() []uint32
- func (x *CompletionResponse_Choice_LogProbs) GetTokenLogprobs() []float32
- func (x *CompletionResponse_Choice_LogProbs) GetTokens() []string
- func (x *CompletionResponse_Choice_LogProbs) GetTopLogprobs() []float32
- func (*CompletionResponse_Choice_LogProbs) ProtoMessage()
- func (x *CompletionResponse_Choice_LogProbs) ProtoReflect() protoreflect.Message
- func (x *CompletionResponse_Choice_LogProbs) Reset()
- func (x *CompletionResponse_Choice_LogProbs) String() string
- type CompletionResponse_Usage
- func (*CompletionResponse_Usage) Descriptor() ([]byte, []int)deprecated
- func (x *CompletionResponse_Usage) GetCompletionTokens() uint32
- func (x *CompletionResponse_Usage) GetPromptTokens() uint32
- func (x *CompletionResponse_Usage) GetTotalTokens() uint32
- func (*CompletionResponse_Usage) ProtoMessage()
- func (x *CompletionResponse_Usage) ProtoReflect() protoreflect.Message
- func (x *CompletionResponse_Usage) Reset()
- func (x *CompletionResponse_Usage) String() string
- type ContentFilterChoiceResult
- func (*ContentFilterChoiceResult) Descriptor() ([]byte, []int)deprecated
- func (x *ContentFilterChoiceResult) GetError() *ErrorBase
- func (x *ContentFilterChoiceResult) GetHate() *ContentFilterSeverityResult
- func (x *ContentFilterChoiceResult) GetProfanity() *ContentFilterDetectedResult
- func (x *ContentFilterChoiceResult) GetProtectedMaterialCode() *ContentFilterDetectedWithCitationResult
- func (x *ContentFilterChoiceResult) GetProtectedMaterialText() *ContentFilterDetectedResult
- func (x *ContentFilterChoiceResult) GetSelfHarm() *ContentFilterSeverityResult
- func (x *ContentFilterChoiceResult) GetSexual() *ContentFilterSeverityResult
- func (x *ContentFilterChoiceResult) GetViolence() *ContentFilterSeverityResult
- func (*ContentFilterChoiceResult) ProtoMessage()
- func (x *ContentFilterChoiceResult) ProtoReflect() protoreflect.Message
- func (x *ContentFilterChoiceResult) Reset()
- func (x *ContentFilterChoiceResult) String() string
- type ContentFilterDetectedResult
- func (*ContentFilterDetectedResult) Descriptor() ([]byte, []int)deprecated
- func (x *ContentFilterDetectedResult) GetDetected() string
- func (x *ContentFilterDetectedResult) GetFiltered() bool
- func (*ContentFilterDetectedResult) ProtoMessage()
- func (x *ContentFilterDetectedResult) ProtoReflect() protoreflect.Message
- func (x *ContentFilterDetectedResult) Reset()
- func (x *ContentFilterDetectedResult) String() string
- type ContentFilterDetectedWithCitationResult
- func (*ContentFilterDetectedWithCitationResult) Descriptor() ([]byte, []int)deprecated
- func (x *ContentFilterDetectedWithCitationResult) GetCitation() *ContentFilterDetectedWithCitationResult_Citation
- func (x *ContentFilterDetectedWithCitationResult) GetDetected() bool
- func (x *ContentFilterDetectedWithCitationResult) GetFiltered() bool
- func (*ContentFilterDetectedWithCitationResult) ProtoMessage()
- func (x *ContentFilterDetectedWithCitationResult) ProtoReflect() protoreflect.Message
- func (x *ContentFilterDetectedWithCitationResult) Reset()
- func (x *ContentFilterDetectedWithCitationResult) String() string
- type ContentFilterDetectedWithCitationResult_Citation
- func (*ContentFilterDetectedWithCitationResult_Citation) Descriptor() ([]byte, []int)deprecated
- func (x *ContentFilterDetectedWithCitationResult_Citation) GetLicense() string
- func (x *ContentFilterDetectedWithCitationResult_Citation) GetUrl() string
- func (*ContentFilterDetectedWithCitationResult_Citation) ProtoMessage()
- func (x *ContentFilterDetectedWithCitationResult_Citation) ProtoReflect() protoreflect.Message
- func (x *ContentFilterDetectedWithCitationResult_Citation) Reset()
- func (x *ContentFilterDetectedWithCitationResult_Citation) String() string
- type ContentFilterPromptResult
- func (*ContentFilterPromptResult) Descriptor() ([]byte, []int)deprecated
- func (x *ContentFilterPromptResult) GetError() *ErrorBase
- func (x *ContentFilterPromptResult) GetHate() *ContentFilterSeverityResult
- func (x *ContentFilterPromptResult) GetJailbreak() *ContentFilterDetectedResult
- func (x *ContentFilterPromptResult) GetProfanity() *ContentFilterDetectedResult
- func (x *ContentFilterPromptResult) GetSelfHarm() *ContentFilterSeverityResult
- func (x *ContentFilterPromptResult) GetSexual() *ContentFilterSeverityResult
- func (x *ContentFilterPromptResult) GetViolence() *ContentFilterSeverityResult
- func (*ContentFilterPromptResult) ProtoMessage()
- func (x *ContentFilterPromptResult) ProtoReflect() protoreflect.Message
- func (x *ContentFilterPromptResult) Reset()
- func (x *ContentFilterPromptResult) String() string
- type ContentFilterSeverityResult
- func (*ContentFilterSeverityResult) Descriptor() ([]byte, []int)deprecated
- func (x *ContentFilterSeverityResult) GetFiltered() bool
- func (x *ContentFilterSeverityResult) GetSeverity() string
- func (*ContentFilterSeverityResult) ProtoMessage()
- func (x *ContentFilterSeverityResult) ProtoReflect() protoreflect.Message
- func (x *ContentFilterSeverityResult) Reset()
- func (x *ContentFilterSeverityResult) String() string
- type EmbeddingRequest
- func (*EmbeddingRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EmbeddingRequest) GetInput() string
- func (x *EmbeddingRequest) GetInputType() string
- func (x *EmbeddingRequest) GetUser() string
- func (*EmbeddingRequest) ProtoMessage()
- func (x *EmbeddingRequest) ProtoReflect() protoreflect.Message
- func (x *EmbeddingRequest) Reset()
- func (x *EmbeddingRequest) String() string
- type EmbeddingResponse
- func (*EmbeddingResponse) Descriptor() ([]byte, []int)deprecated
- func (x *EmbeddingResponse) GetData() []*EmbeddingResponse_Data
- func (x *EmbeddingResponse) GetModel() string
- func (x *EmbeddingResponse) GetObject() string
- func (x *EmbeddingResponse) GetUsage() *EmbeddingResponse_Usage
- func (*EmbeddingResponse) ProtoMessage()
- func (x *EmbeddingResponse) ProtoReflect() protoreflect.Message
- func (x *EmbeddingResponse) Reset()
- func (x *EmbeddingResponse) String() string
- type EmbeddingResponse_Data
- func (*EmbeddingResponse_Data) Descriptor() ([]byte, []int)deprecated
- func (x *EmbeddingResponse_Data) GetEmbedding() []float32
- func (x *EmbeddingResponse_Data) GetIndex() uint32
- func (x *EmbeddingResponse_Data) GetObject() string
- func (*EmbeddingResponse_Data) ProtoMessage()
- func (x *EmbeddingResponse_Data) ProtoReflect() protoreflect.Message
- func (x *EmbeddingResponse_Data) Reset()
- func (x *EmbeddingResponse_Data) String() string
- type EmbeddingResponse_Usage
- func (*EmbeddingResponse_Usage) Descriptor() ([]byte, []int)deprecated
- func (x *EmbeddingResponse_Usage) GetPromptTokens() uint32
- func (x *EmbeddingResponse_Usage) GetTotalTokens() uint32
- func (*EmbeddingResponse_Usage) ProtoMessage()
- func (x *EmbeddingResponse_Usage) ProtoReflect() protoreflect.Message
- func (x *EmbeddingResponse_Usage) Reset()
- func (x *EmbeddingResponse_Usage) String() string
- type ErrorBase
- type PromptFilterResult
- func (*PromptFilterResult) Descriptor() ([]byte, []int)deprecated
- func (x *PromptFilterResult) GetContentFilterResult() *ContentFilterPromptResult
- func (x *PromptFilterResult) GetIndex() uint32
- func (*PromptFilterResult) ProtoMessage()
- func (x *PromptFilterResult) ProtoReflect() protoreflect.Message
- func (x *PromptFilterResult) Reset()
- func (x *PromptFilterResult) String() string
Constants ¶
This section is empty.
Variables ¶
var File_msp_azure_openai_v1_completions_proto protoreflect.FileDescriptor
var File_msp_azure_openai_v1_embeddings_proto protoreflect.FileDescriptor
var File_msp_azure_openai_v1_entity_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type CompletionRequest ¶
type CompletionRequest struct { Prompts []string `protobuf:"bytes,1,rep,name=prompts,json=prompt,proto3" json:"prompts,omitempty"` MaxTokens uint32 `protobuf:"varint,2,opt,name=max_tokens,json=maxTokens,proto3" json:"max_tokens,omitempty"` Temperature float32 `protobuf:"fixed32,3,opt,name=temperature,proto3" json:"temperature,omitempty"` TopP float32 `protobuf:"fixed32,4,opt,name=top_p,json=topP,proto3" json:"top_p,omitempty"` LogitBias map[string]float32 `` /* 178-byte string literal not displayed */ User string `protobuf:"bytes,6,opt,name=user,proto3" json:"user,omitempty"` N uint32 `protobuf:"varint,7,opt,name=n,proto3" json:"n,omitempty"` Stream bool `protobuf:"varint,8,opt,name=stream,proto3" json:"stream,omitempty"` Logprobs uint32 `protobuf:"varint,9,opt,name=logprobs,proto3" json:"logprobs,omitempty"` Suffix string `protobuf:"bytes,10,opt,name=suffix,proto3" json:"suffix,omitempty"` Echo bool `protobuf:"varint,11,opt,name=echo,proto3" json:"echo,omitempty"` Stops []string `protobuf:"bytes,12,rep,name=stops,json=stop,proto3" json:"stops,omitempty"` CompletionConfig string `protobuf:"bytes,13,opt,name=completion_config,json=completionConfig,proto3" json:"completion_config,omitempty"` PresencePenalty float32 `protobuf:"fixed32,14,opt,name=presence_penalty,json=presencePenalty,proto3" json:"presence_penalty,omitempty"` FrequencyPenalty float32 `protobuf:"fixed32,15,opt,name=frequency_penalty,json=frequencyPenalty,proto3" json:"frequency_penalty,omitempty"` BestOf uint32 `protobuf:"varint,16,opt,name=best_of,json=bestOf,proto3" json:"best_of,omitempty"` // contains filtered or unexported fields }
func (*CompletionRequest) Descriptor
deprecated
func (*CompletionRequest) Descriptor() ([]byte, []int)
Deprecated: Use CompletionRequest.ProtoReflect.Descriptor instead.
func (*CompletionRequest) GetBestOf ¶
func (x *CompletionRequest) GetBestOf() uint32
func (*CompletionRequest) GetCompletionConfig ¶
func (x *CompletionRequest) GetCompletionConfig() string
func (*CompletionRequest) GetEcho ¶
func (x *CompletionRequest) GetEcho() bool
func (*CompletionRequest) GetFrequencyPenalty ¶
func (x *CompletionRequest) GetFrequencyPenalty() float32
func (*CompletionRequest) GetLogitBias ¶
func (x *CompletionRequest) GetLogitBias() map[string]float32
func (*CompletionRequest) GetLogprobs ¶
func (x *CompletionRequest) GetLogprobs() uint32
func (*CompletionRequest) GetMaxTokens ¶
func (x *CompletionRequest) GetMaxTokens() uint32
func (*CompletionRequest) GetN ¶
func (x *CompletionRequest) GetN() uint32
func (*CompletionRequest) GetPresencePenalty ¶
func (x *CompletionRequest) GetPresencePenalty() float32
func (*CompletionRequest) GetPrompts ¶
func (x *CompletionRequest) GetPrompts() []string
func (*CompletionRequest) GetStops ¶
func (x *CompletionRequest) GetStops() []string
func (*CompletionRequest) GetStream ¶
func (x *CompletionRequest) GetStream() bool
func (*CompletionRequest) GetSuffix ¶
func (x *CompletionRequest) GetSuffix() string
func (*CompletionRequest) GetTemperature ¶
func (x *CompletionRequest) GetTemperature() float32
func (*CompletionRequest) GetTopP ¶
func (x *CompletionRequest) GetTopP() float32
func (*CompletionRequest) GetUser ¶
func (x *CompletionRequest) GetUser() string
func (*CompletionRequest) ProtoMessage ¶
func (*CompletionRequest) ProtoMessage()
func (*CompletionRequest) ProtoReflect ¶
func (x *CompletionRequest) ProtoReflect() protoreflect.Message
func (*CompletionRequest) Reset ¶
func (x *CompletionRequest) Reset()
func (*CompletionRequest) String ¶
func (x *CompletionRequest) String() string
type CompletionResponse ¶
type CompletionResponse struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Object string `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"` Created uint64 `protobuf:"varint,3,opt,name=created,proto3" json:"created,omitempty"` Model string `protobuf:"bytes,4,opt,name=model,proto3" json:"model,omitempty"` PromptFilterResults []*PromptFilterResult `protobuf:"bytes,5,rep,name=prompt_filter_results,json=promptFilterResults,proto3" json:"prompt_filter_results,omitempty"` Choices []*CompletionResponse_Choice `protobuf:"bytes,6,rep,name=choices,proto3" json:"choices,omitempty"` Usage *CompletionResponse_Usage `protobuf:"bytes,7,opt,name=usage,proto3" json:"usage,omitempty"` // contains filtered or unexported fields }
func (*CompletionResponse) Descriptor
deprecated
func (*CompletionResponse) Descriptor() ([]byte, []int)
Deprecated: Use CompletionResponse.ProtoReflect.Descriptor instead.
func (*CompletionResponse) GetChoices ¶
func (x *CompletionResponse) GetChoices() []*CompletionResponse_Choice
func (*CompletionResponse) GetCreated ¶
func (x *CompletionResponse) GetCreated() uint64
func (*CompletionResponse) GetId ¶
func (x *CompletionResponse) GetId() string
func (*CompletionResponse) GetModel ¶
func (x *CompletionResponse) GetModel() string
func (*CompletionResponse) GetObject ¶
func (x *CompletionResponse) GetObject() string
func (*CompletionResponse) GetPromptFilterResults ¶
func (x *CompletionResponse) GetPromptFilterResults() []*PromptFilterResult
func (*CompletionResponse) GetUsage ¶
func (x *CompletionResponse) GetUsage() *CompletionResponse_Usage
func (*CompletionResponse) ProtoMessage ¶
func (*CompletionResponse) ProtoMessage()
func (*CompletionResponse) ProtoReflect ¶
func (x *CompletionResponse) ProtoReflect() protoreflect.Message
func (*CompletionResponse) Reset ¶
func (x *CompletionResponse) Reset()
func (*CompletionResponse) String ¶
func (x *CompletionResponse) String() string
type CompletionResponse_Choice ¶
type CompletionResponse_Choice struct { Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"` Index uint32 `protobuf:"varint,2,opt,name=index,proto3" json:"index,omitempty"` Logprobs *CompletionResponse_Choice_LogProbs `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"` ContentFilterResult *ContentFilterChoiceResult `protobuf:"bytes,5,opt,name=content_filter_result,json=content_filter_results,proto3" json:"content_filter_result,omitempty"` // contains filtered or unexported fields }
func (*CompletionResponse_Choice) Descriptor
deprecated
func (*CompletionResponse_Choice) Descriptor() ([]byte, []int)
Deprecated: Use CompletionResponse_Choice.ProtoReflect.Descriptor instead.
func (*CompletionResponse_Choice) GetContentFilterResult ¶
func (x *CompletionResponse_Choice) GetContentFilterResult() *ContentFilterChoiceResult
func (*CompletionResponse_Choice) GetFinishReason ¶
func (x *CompletionResponse_Choice) GetFinishReason() string
func (*CompletionResponse_Choice) GetIndex ¶
func (x *CompletionResponse_Choice) GetIndex() uint32
func (*CompletionResponse_Choice) GetLogprobs ¶
func (x *CompletionResponse_Choice) GetLogprobs() *CompletionResponse_Choice_LogProbs
func (*CompletionResponse_Choice) GetText ¶
func (x *CompletionResponse_Choice) GetText() string
func (*CompletionResponse_Choice) ProtoMessage ¶
func (*CompletionResponse_Choice) ProtoMessage()
func (*CompletionResponse_Choice) ProtoReflect ¶
func (x *CompletionResponse_Choice) ProtoReflect() protoreflect.Message
func (*CompletionResponse_Choice) Reset ¶
func (x *CompletionResponse_Choice) Reset()
func (*CompletionResponse_Choice) String ¶
func (x *CompletionResponse_Choice) String() string
type CompletionResponse_Choice_LogProbs ¶
type CompletionResponse_Choice_LogProbs struct { Tokens []string `protobuf:"bytes,1,rep,name=tokens,proto3" json:"tokens,omitempty"` TokenLogprobs []float32 `protobuf:"fixed32,2,rep,packed,name=token_logprobs,json=tokenLogprobs,proto3" json:"token_logprobs,omitempty"` TopLogprobs []float32 `protobuf:"fixed32,3,rep,packed,name=top_logprobs,json=topLogprobs,proto3" json:"top_logprobs,omitempty"` TextOffsets []uint32 `protobuf:"varint,4,rep,packed,name=text_offsets,json=text_offset,proto3" json:"text_offsets,omitempty"` // contains filtered or unexported fields }
func (*CompletionResponse_Choice_LogProbs) Descriptor
deprecated
func (*CompletionResponse_Choice_LogProbs) Descriptor() ([]byte, []int)
Deprecated: Use CompletionResponse_Choice_LogProbs.ProtoReflect.Descriptor instead.
func (*CompletionResponse_Choice_LogProbs) GetTextOffsets ¶
func (x *CompletionResponse_Choice_LogProbs) GetTextOffsets() []uint32
func (*CompletionResponse_Choice_LogProbs) GetTokenLogprobs ¶
func (x *CompletionResponse_Choice_LogProbs) GetTokenLogprobs() []float32
func (*CompletionResponse_Choice_LogProbs) GetTokens ¶
func (x *CompletionResponse_Choice_LogProbs) GetTokens() []string
func (*CompletionResponse_Choice_LogProbs) GetTopLogprobs ¶
func (x *CompletionResponse_Choice_LogProbs) GetTopLogprobs() []float32
func (*CompletionResponse_Choice_LogProbs) ProtoMessage ¶
func (*CompletionResponse_Choice_LogProbs) ProtoMessage()
func (*CompletionResponse_Choice_LogProbs) ProtoReflect ¶
func (x *CompletionResponse_Choice_LogProbs) ProtoReflect() protoreflect.Message
func (*CompletionResponse_Choice_LogProbs) Reset ¶
func (x *CompletionResponse_Choice_LogProbs) Reset()
func (*CompletionResponse_Choice_LogProbs) String ¶
func (x *CompletionResponse_Choice_LogProbs) String() string
type CompletionResponse_Usage ¶
type CompletionResponse_Usage struct { CompletionTokens uint32 `protobuf:"varint,1,opt,name=completion_tokens,json=completionTokens,proto3" json:"completion_tokens,omitempty"` PromptTokens uint32 `protobuf:"varint,2,opt,name=prompt_tokens,json=promptTokens,proto3" json:"prompt_tokens,omitempty"` TotalTokens uint32 `protobuf:"varint,3,opt,name=total_tokens,json=totalTokens,proto3" json:"total_tokens,omitempty"` // contains filtered or unexported fields }
func (*CompletionResponse_Usage) Descriptor
deprecated
func (*CompletionResponse_Usage) Descriptor() ([]byte, []int)
Deprecated: Use CompletionResponse_Usage.ProtoReflect.Descriptor instead.
func (*CompletionResponse_Usage) GetCompletionTokens ¶
func (x *CompletionResponse_Usage) GetCompletionTokens() uint32
func (*CompletionResponse_Usage) GetPromptTokens ¶
func (x *CompletionResponse_Usage) GetPromptTokens() uint32
func (*CompletionResponse_Usage) GetTotalTokens ¶
func (x *CompletionResponse_Usage) GetTotalTokens() uint32
func (*CompletionResponse_Usage) ProtoMessage ¶
func (*CompletionResponse_Usage) ProtoMessage()
func (*CompletionResponse_Usage) ProtoReflect ¶
func (x *CompletionResponse_Usage) ProtoReflect() protoreflect.Message
func (*CompletionResponse_Usage) Reset ¶
func (x *CompletionResponse_Usage) Reset()
func (*CompletionResponse_Usage) String ¶
func (x *CompletionResponse_Usage) String() string
type ContentFilterChoiceResult ¶
type ContentFilterChoiceResult struct { Sexual *ContentFilterSeverityResult `protobuf:"bytes,1,opt,name=sexual,proto3" json:"sexual,omitempty"` Violence *ContentFilterSeverityResult `protobuf:"bytes,2,opt,name=violence,proto3" json:"violence,omitempty"` Hate *ContentFilterSeverityResult `protobuf:"bytes,3,opt,name=hate,proto3" json:"hate,omitempty"` SelfHarm *ContentFilterSeverityResult `protobuf:"bytes,4,opt,name=self_harm,json=selfHarm,proto3" json:"self_harm,omitempty"` Profanity *ContentFilterDetectedResult `protobuf:"bytes,5,opt,name=profanity,proto3" json:"profanity,omitempty"` ProtectedMaterialText *ContentFilterDetectedResult `` /* 126-byte string literal not displayed */ ProtectedMaterialCode *ContentFilterDetectedWithCitationResult `` /* 126-byte string literal not displayed */ Error *ErrorBase `protobuf:"bytes,99,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*ContentFilterChoiceResult) Descriptor
deprecated
func (*ContentFilterChoiceResult) Descriptor() ([]byte, []int)
Deprecated: Use ContentFilterChoiceResult.ProtoReflect.Descriptor instead.
func (*ContentFilterChoiceResult) GetError ¶
func (x *ContentFilterChoiceResult) GetError() *ErrorBase
func (*ContentFilterChoiceResult) GetHate ¶
func (x *ContentFilterChoiceResult) GetHate() *ContentFilterSeverityResult
func (*ContentFilterChoiceResult) GetProfanity ¶
func (x *ContentFilterChoiceResult) GetProfanity() *ContentFilterDetectedResult
func (*ContentFilterChoiceResult) GetProtectedMaterialCode ¶
func (x *ContentFilterChoiceResult) GetProtectedMaterialCode() *ContentFilterDetectedWithCitationResult
func (*ContentFilterChoiceResult) GetProtectedMaterialText ¶
func (x *ContentFilterChoiceResult) GetProtectedMaterialText() *ContentFilterDetectedResult
func (*ContentFilterChoiceResult) GetSelfHarm ¶
func (x *ContentFilterChoiceResult) GetSelfHarm() *ContentFilterSeverityResult
func (*ContentFilterChoiceResult) GetSexual ¶
func (x *ContentFilterChoiceResult) GetSexual() *ContentFilterSeverityResult
func (*ContentFilterChoiceResult) GetViolence ¶
func (x *ContentFilterChoiceResult) GetViolence() *ContentFilterSeverityResult
func (*ContentFilterChoiceResult) ProtoMessage ¶
func (*ContentFilterChoiceResult) ProtoMessage()
func (*ContentFilterChoiceResult) ProtoReflect ¶
func (x *ContentFilterChoiceResult) ProtoReflect() protoreflect.Message
func (*ContentFilterChoiceResult) Reset ¶
func (x *ContentFilterChoiceResult) Reset()
func (*ContentFilterChoiceResult) String ¶
func (x *ContentFilterChoiceResult) String() string
type ContentFilterDetectedResult ¶
type ContentFilterDetectedResult struct { Filtered bool `protobuf:"varint,1,opt,name=filtered,proto3" json:"filtered,omitempty"` Detected string `protobuf:"bytes,2,opt,name=detected,proto3" json:"detected,omitempty"` // contains filtered or unexported fields }
func (*ContentFilterDetectedResult) Descriptor
deprecated
func (*ContentFilterDetectedResult) Descriptor() ([]byte, []int)
Deprecated: Use ContentFilterDetectedResult.ProtoReflect.Descriptor instead.
func (*ContentFilterDetectedResult) GetDetected ¶
func (x *ContentFilterDetectedResult) GetDetected() string
func (*ContentFilterDetectedResult) GetFiltered ¶
func (x *ContentFilterDetectedResult) GetFiltered() bool
func (*ContentFilterDetectedResult) ProtoMessage ¶
func (*ContentFilterDetectedResult) ProtoMessage()
func (*ContentFilterDetectedResult) ProtoReflect ¶
func (x *ContentFilterDetectedResult) ProtoReflect() protoreflect.Message
func (*ContentFilterDetectedResult) Reset ¶
func (x *ContentFilterDetectedResult) Reset()
func (*ContentFilterDetectedResult) String ¶
func (x *ContentFilterDetectedResult) String() string
type ContentFilterDetectedWithCitationResult ¶
type ContentFilterDetectedWithCitationResult struct { Filtered bool `protobuf:"varint,1,opt,name=filtered,proto3" json:"filtered,omitempty"` Detected bool `protobuf:"varint,2,opt,name=detected,proto3" json:"detected,omitempty"` Citation *ContentFilterDetectedWithCitationResult_Citation `protobuf:"bytes,3,opt,name=citation,proto3" json:"citation,omitempty"` // contains filtered or unexported fields }
func (*ContentFilterDetectedWithCitationResult) Descriptor
deprecated
func (*ContentFilterDetectedWithCitationResult) Descriptor() ([]byte, []int)
Deprecated: Use ContentFilterDetectedWithCitationResult.ProtoReflect.Descriptor instead.
func (*ContentFilterDetectedWithCitationResult) GetCitation ¶
func (x *ContentFilterDetectedWithCitationResult) GetCitation() *ContentFilterDetectedWithCitationResult_Citation
func (*ContentFilterDetectedWithCitationResult) GetDetected ¶
func (x *ContentFilterDetectedWithCitationResult) GetDetected() bool
func (*ContentFilterDetectedWithCitationResult) GetFiltered ¶
func (x *ContentFilterDetectedWithCitationResult) GetFiltered() bool
func (*ContentFilterDetectedWithCitationResult) ProtoMessage ¶
func (*ContentFilterDetectedWithCitationResult) ProtoMessage()
func (*ContentFilterDetectedWithCitationResult) ProtoReflect ¶
func (x *ContentFilterDetectedWithCitationResult) ProtoReflect() protoreflect.Message
func (*ContentFilterDetectedWithCitationResult) Reset ¶
func (x *ContentFilterDetectedWithCitationResult) Reset()
func (*ContentFilterDetectedWithCitationResult) String ¶
func (x *ContentFilterDetectedWithCitationResult) String() string
type ContentFilterDetectedWithCitationResult_Citation ¶
type ContentFilterDetectedWithCitationResult_Citation struct { Url string `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"` License string `protobuf:"bytes,2,opt,name=license,proto3" json:"license,omitempty"` // contains filtered or unexported fields }
func (*ContentFilterDetectedWithCitationResult_Citation) Descriptor
deprecated
func (*ContentFilterDetectedWithCitationResult_Citation) Descriptor() ([]byte, []int)
Deprecated: Use ContentFilterDetectedWithCitationResult_Citation.ProtoReflect.Descriptor instead.
func (*ContentFilterDetectedWithCitationResult_Citation) GetLicense ¶
func (x *ContentFilterDetectedWithCitationResult_Citation) GetLicense() string
func (*ContentFilterDetectedWithCitationResult_Citation) GetUrl ¶
func (x *ContentFilterDetectedWithCitationResult_Citation) GetUrl() string
func (*ContentFilterDetectedWithCitationResult_Citation) ProtoMessage ¶
func (*ContentFilterDetectedWithCitationResult_Citation) ProtoMessage()
func (*ContentFilterDetectedWithCitationResult_Citation) ProtoReflect ¶
func (x *ContentFilterDetectedWithCitationResult_Citation) ProtoReflect() protoreflect.Message
func (*ContentFilterDetectedWithCitationResult_Citation) Reset ¶
func (x *ContentFilterDetectedWithCitationResult_Citation) Reset()
func (*ContentFilterDetectedWithCitationResult_Citation) String ¶
func (x *ContentFilterDetectedWithCitationResult_Citation) String() string
type ContentFilterPromptResult ¶
type ContentFilterPromptResult struct { Sexual *ContentFilterSeverityResult `protobuf:"bytes,1,opt,name=sexual,proto3" json:"sexual,omitempty"` Violence *ContentFilterSeverityResult `protobuf:"bytes,2,opt,name=violence,proto3" json:"violence,omitempty"` Hate *ContentFilterSeverityResult `protobuf:"bytes,3,opt,name=hate,proto3" json:"hate,omitempty"` SelfHarm *ContentFilterSeverityResult `protobuf:"bytes,4,opt,name=self_harm,json=selfHarm,proto3" json:"self_harm,omitempty"` Profanity *ContentFilterDetectedResult `protobuf:"bytes,5,opt,name=profanity,proto3" json:"profanity,omitempty"` Jailbreak *ContentFilterDetectedResult `protobuf:"bytes,6,opt,name=jailbreak,proto3" json:"jailbreak,omitempty"` Error *ErrorBase `protobuf:"bytes,99,opt,name=error,proto3" json:"error,omitempty"` // contains filtered or unexported fields }
func (*ContentFilterPromptResult) Descriptor
deprecated
func (*ContentFilterPromptResult) Descriptor() ([]byte, []int)
Deprecated: Use ContentFilterPromptResult.ProtoReflect.Descriptor instead.
func (*ContentFilterPromptResult) GetError ¶
func (x *ContentFilterPromptResult) GetError() *ErrorBase
func (*ContentFilterPromptResult) GetHate ¶
func (x *ContentFilterPromptResult) GetHate() *ContentFilterSeverityResult
func (*ContentFilterPromptResult) GetJailbreak ¶
func (x *ContentFilterPromptResult) GetJailbreak() *ContentFilterDetectedResult
func (*ContentFilterPromptResult) GetProfanity ¶
func (x *ContentFilterPromptResult) GetProfanity() *ContentFilterDetectedResult
func (*ContentFilterPromptResult) GetSelfHarm ¶
func (x *ContentFilterPromptResult) GetSelfHarm() *ContentFilterSeverityResult
func (*ContentFilterPromptResult) GetSexual ¶
func (x *ContentFilterPromptResult) GetSexual() *ContentFilterSeverityResult
func (*ContentFilterPromptResult) GetViolence ¶
func (x *ContentFilterPromptResult) GetViolence() *ContentFilterSeverityResult
func (*ContentFilterPromptResult) ProtoMessage ¶
func (*ContentFilterPromptResult) ProtoMessage()
func (*ContentFilterPromptResult) ProtoReflect ¶
func (x *ContentFilterPromptResult) ProtoReflect() protoreflect.Message
func (*ContentFilterPromptResult) Reset ¶
func (x *ContentFilterPromptResult) Reset()
func (*ContentFilterPromptResult) String ¶
func (x *ContentFilterPromptResult) String() string
type ContentFilterSeverityResult ¶
type ContentFilterSeverityResult struct { Filtered bool `protobuf:"varint,1,opt,name=filtered,proto3" json:"filtered,omitempty"` Severity string `protobuf:"bytes,2,opt,name=severity,proto3" json:"severity,omitempty"` // contains filtered or unexported fields }
func (*ContentFilterSeverityResult) Descriptor
deprecated
func (*ContentFilterSeverityResult) Descriptor() ([]byte, []int)
Deprecated: Use ContentFilterSeverityResult.ProtoReflect.Descriptor instead.
func (*ContentFilterSeverityResult) GetFiltered ¶
func (x *ContentFilterSeverityResult) GetFiltered() bool
func (*ContentFilterSeverityResult) GetSeverity ¶
func (x *ContentFilterSeverityResult) GetSeverity() string
func (*ContentFilterSeverityResult) ProtoMessage ¶
func (*ContentFilterSeverityResult) ProtoMessage()
func (*ContentFilterSeverityResult) ProtoReflect ¶
func (x *ContentFilterSeverityResult) ProtoReflect() protoreflect.Message
func (*ContentFilterSeverityResult) Reset ¶
func (x *ContentFilterSeverityResult) Reset()
func (*ContentFilterSeverityResult) String ¶
func (x *ContentFilterSeverityResult) String() string
type EmbeddingRequest ¶
type EmbeddingRequest struct { Input string `protobuf:"bytes,1,opt,name=input,proto3" json:"input,omitempty"` User string `protobuf:"bytes,2,opt,name=user,proto3" json:"user,omitempty"` InputType string `protobuf:"bytes,3,opt,name=input_type,json=inputType,proto3" json:"input_type,omitempty"` // contains filtered or unexported fields }
func (*EmbeddingRequest) Descriptor
deprecated
func (*EmbeddingRequest) Descriptor() ([]byte, []int)
Deprecated: Use EmbeddingRequest.ProtoReflect.Descriptor instead.
func (*EmbeddingRequest) GetInput ¶
func (x *EmbeddingRequest) GetInput() string
func (*EmbeddingRequest) GetInputType ¶
func (x *EmbeddingRequest) GetInputType() string
func (*EmbeddingRequest) GetUser ¶
func (x *EmbeddingRequest) GetUser() string
func (*EmbeddingRequest) ProtoMessage ¶
func (*EmbeddingRequest) ProtoMessage()
func (*EmbeddingRequest) ProtoReflect ¶
func (x *EmbeddingRequest) ProtoReflect() protoreflect.Message
func (*EmbeddingRequest) Reset ¶
func (x *EmbeddingRequest) Reset()
func (*EmbeddingRequest) String ¶
func (x *EmbeddingRequest) String() string
type EmbeddingResponse ¶
type EmbeddingResponse struct { Object string `protobuf:"bytes,1,opt,name=object,proto3" json:"object,omitempty"` Model string `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"` Data []*EmbeddingResponse_Data `protobuf:"bytes,3,rep,name=data,proto3" json:"data,omitempty"` Usage *EmbeddingResponse_Usage `protobuf:"bytes,4,opt,name=usage,proto3" json:"usage,omitempty"` // contains filtered or unexported fields }
func (*EmbeddingResponse) Descriptor
deprecated
func (*EmbeddingResponse) Descriptor() ([]byte, []int)
Deprecated: Use EmbeddingResponse.ProtoReflect.Descriptor instead.
func (*EmbeddingResponse) GetData ¶
func (x *EmbeddingResponse) GetData() []*EmbeddingResponse_Data
func (*EmbeddingResponse) GetModel ¶
func (x *EmbeddingResponse) GetModel() string
func (*EmbeddingResponse) GetObject ¶
func (x *EmbeddingResponse) GetObject() string
func (*EmbeddingResponse) GetUsage ¶
func (x *EmbeddingResponse) GetUsage() *EmbeddingResponse_Usage
func (*EmbeddingResponse) ProtoMessage ¶
func (*EmbeddingResponse) ProtoMessage()
func (*EmbeddingResponse) ProtoReflect ¶
func (x *EmbeddingResponse) ProtoReflect() protoreflect.Message
func (*EmbeddingResponse) Reset ¶
func (x *EmbeddingResponse) Reset()
func (*EmbeddingResponse) String ¶
func (x *EmbeddingResponse) String() string
type EmbeddingResponse_Data ¶
type EmbeddingResponse_Data struct { Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` Object string `protobuf:"bytes,2,opt,name=object,proto3" json:"object,omitempty"` Embedding []float32 `protobuf:"fixed32,3,rep,packed,name=embedding,proto3" json:"embedding,omitempty"` // contains filtered or unexported fields }
func (*EmbeddingResponse_Data) Descriptor
deprecated
func (*EmbeddingResponse_Data) Descriptor() ([]byte, []int)
Deprecated: Use EmbeddingResponse_Data.ProtoReflect.Descriptor instead.
func (*EmbeddingResponse_Data) GetEmbedding ¶
func (x *EmbeddingResponse_Data) GetEmbedding() []float32
func (*EmbeddingResponse_Data) GetIndex ¶
func (x *EmbeddingResponse_Data) GetIndex() uint32
func (*EmbeddingResponse_Data) GetObject ¶
func (x *EmbeddingResponse_Data) GetObject() string
func (*EmbeddingResponse_Data) ProtoMessage ¶
func (*EmbeddingResponse_Data) ProtoMessage()
func (*EmbeddingResponse_Data) ProtoReflect ¶
func (x *EmbeddingResponse_Data) ProtoReflect() protoreflect.Message
func (*EmbeddingResponse_Data) Reset ¶
func (x *EmbeddingResponse_Data) Reset()
func (*EmbeddingResponse_Data) String ¶
func (x *EmbeddingResponse_Data) String() string
type EmbeddingResponse_Usage ¶
type EmbeddingResponse_Usage struct { PromptTokens uint32 `protobuf:"varint,1,opt,name=prompt_tokens,json=promptTokens,proto3" json:"prompt_tokens,omitempty"` TotalTokens uint32 `protobuf:"varint,2,opt,name=total_tokens,json=totalTokens,proto3" json:"total_tokens,omitempty"` // contains filtered or unexported fields }
func (*EmbeddingResponse_Usage) Descriptor
deprecated
func (*EmbeddingResponse_Usage) Descriptor() ([]byte, []int)
Deprecated: Use EmbeddingResponse_Usage.ProtoReflect.Descriptor instead.
func (*EmbeddingResponse_Usage) GetPromptTokens ¶
func (x *EmbeddingResponse_Usage) GetPromptTokens() uint32
func (*EmbeddingResponse_Usage) GetTotalTokens ¶
func (x *EmbeddingResponse_Usage) GetTotalTokens() uint32
func (*EmbeddingResponse_Usage) ProtoMessage ¶
func (*EmbeddingResponse_Usage) ProtoMessage()
func (*EmbeddingResponse_Usage) ProtoReflect ¶
func (x *EmbeddingResponse_Usage) ProtoReflect() protoreflect.Message
func (*EmbeddingResponse_Usage) Reset ¶
func (x *EmbeddingResponse_Usage) Reset()
func (*EmbeddingResponse_Usage) String ¶
func (x *EmbeddingResponse_Usage) String() string
type ErrorBase ¶
type ErrorBase struct { Code string `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*ErrorBase) Descriptor
deprecated
func (*ErrorBase) GetMessage ¶
func (*ErrorBase) ProtoMessage ¶
func (*ErrorBase) ProtoMessage()
func (*ErrorBase) ProtoReflect ¶
func (x *ErrorBase) ProtoReflect() protoreflect.Message
type PromptFilterResult ¶
type PromptFilterResult struct { Index uint32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty"` ContentFilterResult *ContentFilterPromptResult `protobuf:"bytes,2,opt,name=content_filter_result,json=content_filter_results,proto3" json:"content_filter_result,omitempty"` // contains filtered or unexported fields }
func (*PromptFilterResult) Descriptor
deprecated
func (*PromptFilterResult) Descriptor() ([]byte, []int)
Deprecated: Use PromptFilterResult.ProtoReflect.Descriptor instead.
func (*PromptFilterResult) GetContentFilterResult ¶
func (x *PromptFilterResult) GetContentFilterResult() *ContentFilterPromptResult
func (*PromptFilterResult) GetIndex ¶
func (x *PromptFilterResult) GetIndex() uint32
func (*PromptFilterResult) ProtoMessage ¶
func (*PromptFilterResult) ProtoMessage()
func (*PromptFilterResult) ProtoReflect ¶
func (x *PromptFilterResult) ProtoReflect() protoreflect.Message
func (*PromptFilterResult) Reset ¶
func (x *PromptFilterResult) Reset()
func (*PromptFilterResult) String ¶
func (x *PromptFilterResult) String() string