openaiv1

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_msp_azure_openai_v1_completions_proto protoreflect.FileDescriptor
View Source
var File_msp_azure_openai_v1_embeddings_proto protoreflect.FileDescriptor
View Source
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 (*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 (*CompletionResponse_Choice) GetText

func (x *CompletionResponse_Choice) GetText() string

func (*CompletionResponse_Choice) ProtoMessage

func (*CompletionResponse_Choice) ProtoMessage()

func (*CompletionResponse_Choice) ProtoReflect

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 (*CompletionResponse_Choice_LogProbs) Reset

func (*CompletionResponse_Choice_LogProbs) 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 (*ContentFilterChoiceResult) GetProfanity

func (*ContentFilterChoiceResult) GetProtectedMaterialCode

func (*ContentFilterChoiceResult) GetProtectedMaterialText

func (x *ContentFilterChoiceResult) GetProtectedMaterialText() *ContentFilterDetectedResult

func (*ContentFilterChoiceResult) GetSelfHarm

func (*ContentFilterChoiceResult) GetSexual

func (*ContentFilterChoiceResult) GetViolence

func (*ContentFilterChoiceResult) ProtoMessage

func (*ContentFilterChoiceResult) ProtoMessage()

func (*ContentFilterChoiceResult) ProtoReflect

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 (*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 (*ContentFilterDetectedWithCitationResult) GetDetected

func (*ContentFilterDetectedWithCitationResult) GetFiltered

func (*ContentFilterDetectedWithCitationResult) ProtoMessage

func (*ContentFilterDetectedWithCitationResult) ProtoReflect

func (*ContentFilterDetectedWithCitationResult) Reset

func (*ContentFilterDetectedWithCitationResult) 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

Deprecated: Use ContentFilterDetectedWithCitationResult_Citation.ProtoReflect.Descriptor instead.

func (*ContentFilterDetectedWithCitationResult_Citation) GetLicense

func (*ContentFilterDetectedWithCitationResult_Citation) GetUrl

func (*ContentFilterDetectedWithCitationResult_Citation) ProtoMessage

func (*ContentFilterDetectedWithCitationResult_Citation) ProtoReflect

func (*ContentFilterDetectedWithCitationResult_Citation) Reset

func (*ContentFilterDetectedWithCitationResult_Citation) 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 (*ContentFilterPromptResult) GetJailbreak

func (*ContentFilterPromptResult) GetProfanity

func (*ContentFilterPromptResult) GetSelfHarm

func (*ContentFilterPromptResult) GetSexual

func (*ContentFilterPromptResult) GetViolence

func (*ContentFilterPromptResult) ProtoMessage

func (*ContentFilterPromptResult) ProtoMessage()

func (*ContentFilterPromptResult) ProtoReflect

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 (*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 (*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) Descriptor() ([]byte, []int)

Deprecated: Use ErrorBase.ProtoReflect.Descriptor instead.

func (*ErrorBase) GetCode

func (x *ErrorBase) GetCode() string

func (*ErrorBase) GetMessage

func (x *ErrorBase) GetMessage() string

func (*ErrorBase) ProtoMessage

func (*ErrorBase) ProtoMessage()

func (*ErrorBase) ProtoReflect

func (x *ErrorBase) ProtoReflect() protoreflect.Message

func (*ErrorBase) Reset

func (x *ErrorBase) Reset()

func (*ErrorBase) String

func (x *ErrorBase) String() string

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL