mirror of
https://github.com/ManyakRus/starter.git
synced 2025-11-28 23:20:10 +02:00
сделал make mod
This commit is contained in:
28
vendor/github.com/sashabaranov/go-openai/chat_stream.go
generated
vendored
28
vendor/github.com/sashabaranov/go-openai/chat_stream.go
generated
vendored
@@ -10,13 +10,33 @@ type ChatCompletionStreamChoiceDelta struct {
|
||||
Role string `json:"role,omitempty"`
|
||||
FunctionCall *FunctionCall `json:"function_call,omitempty"`
|
||||
ToolCalls []ToolCall `json:"tool_calls,omitempty"`
|
||||
Refusal string `json:"refusal,omitempty"`
|
||||
}
|
||||
|
||||
type ChatCompletionStreamChoiceLogprobs struct {
|
||||
Content []ChatCompletionTokenLogprob `json:"content,omitempty"`
|
||||
Refusal []ChatCompletionTokenLogprob `json:"refusal,omitempty"`
|
||||
}
|
||||
|
||||
type ChatCompletionTokenLogprob struct {
|
||||
Token string `json:"token"`
|
||||
Bytes []int64 `json:"bytes,omitempty"`
|
||||
Logprob float64 `json:"logprob,omitempty"`
|
||||
TopLogprobs []ChatCompletionTokenLogprobTopLogprob `json:"top_logprobs"`
|
||||
}
|
||||
|
||||
type ChatCompletionTokenLogprobTopLogprob struct {
|
||||
Token string `json:"token"`
|
||||
Bytes []int64 `json:"bytes"`
|
||||
Logprob float64 `json:"logprob"`
|
||||
}
|
||||
|
||||
type ChatCompletionStreamChoice struct {
|
||||
Index int `json:"index"`
|
||||
Delta ChatCompletionStreamChoiceDelta `json:"delta"`
|
||||
FinishReason FinishReason `json:"finish_reason"`
|
||||
ContentFilterResults ContentFilterResults `json:"content_filter_results,omitempty"`
|
||||
Index int `json:"index"`
|
||||
Delta ChatCompletionStreamChoiceDelta `json:"delta"`
|
||||
Logprobs *ChatCompletionStreamChoiceLogprobs `json:"logprobs,omitempty"`
|
||||
FinishReason FinishReason `json:"finish_reason"`
|
||||
ContentFilterResults ContentFilterResults `json:"content_filter_results,omitempty"`
|
||||
}
|
||||
|
||||
type PromptFilterResult struct {
|
||||
|
||||
Reference in New Issue
Block a user