mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-24 02:46:37 +08:00
feat: support o1 channel test
This commit is contained in:
parent
3af62a3efa
commit
804aad3f37
@ -7,31 +7,32 @@ type ResponseFormat struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
type GeneralOpenAIRequest struct {
|
type GeneralOpenAIRequest struct {
|
||||||
Model string `json:"model,omitempty"`
|
Model string `json:"model,omitempty"`
|
||||||
Messages []Message `json:"messages,omitempty"`
|
Messages []Message `json:"messages,omitempty"`
|
||||||
Prompt any `json:"prompt,omitempty"`
|
Prompt any `json:"prompt,omitempty"`
|
||||||
Stream bool `json:"stream,omitempty"`
|
Stream bool `json:"stream,omitempty"`
|
||||||
StreamOptions *StreamOptions `json:"stream_options,omitempty"`
|
StreamOptions *StreamOptions `json:"stream_options,omitempty"`
|
||||||
MaxTokens uint `json:"max_tokens,omitempty"`
|
MaxTokens uint `json:"max_tokens,omitempty"`
|
||||||
Temperature float64 `json:"temperature,omitempty"`
|
MaxCompletionTokens uint `json:"max_completion_tokens,omitempty"`
|
||||||
TopP float64 `json:"top_p,omitempty"`
|
Temperature float64 `json:"temperature,omitempty"`
|
||||||
TopK int `json:"top_k,omitempty"`
|
TopP float64 `json:"top_p,omitempty"`
|
||||||
Stop any `json:"stop,omitempty"`
|
TopK int `json:"top_k,omitempty"`
|
||||||
N int `json:"n,omitempty"`
|
Stop any `json:"stop,omitempty"`
|
||||||
Input any `json:"input,omitempty"`
|
N int `json:"n,omitempty"`
|
||||||
Instruction string `json:"instruction,omitempty"`
|
Input any `json:"input,omitempty"`
|
||||||
Size string `json:"size,omitempty"`
|
Instruction string `json:"instruction,omitempty"`
|
||||||
Functions any `json:"functions,omitempty"`
|
Size string `json:"size,omitempty"`
|
||||||
FrequencyPenalty float64 `json:"frequency_penalty,omitempty"`
|
Functions any `json:"functions,omitempty"`
|
||||||
PresencePenalty float64 `json:"presence_penalty,omitempty"`
|
FrequencyPenalty float64 `json:"frequency_penalty,omitempty"`
|
||||||
ResponseFormat any `json:"response_format,omitempty"`
|
PresencePenalty float64 `json:"presence_penalty,omitempty"`
|
||||||
Seed float64 `json:"seed,omitempty"`
|
ResponseFormat any `json:"response_format,omitempty"`
|
||||||
Tools []ToolCall `json:"tools,omitempty"`
|
Seed float64 `json:"seed,omitempty"`
|
||||||
ToolChoice any `json:"tool_choice,omitempty"`
|
Tools []ToolCall `json:"tools,omitempty"`
|
||||||
User string `json:"user,omitempty"`
|
ToolChoice any `json:"tool_choice,omitempty"`
|
||||||
LogProbs bool `json:"logprobs,omitempty"`
|
User string `json:"user,omitempty"`
|
||||||
TopLogProbs int `json:"top_logprobs,omitempty"`
|
LogProbs bool `json:"logprobs,omitempty"`
|
||||||
Dimensions int `json:"dimensions,omitempty"`
|
TopLogProbs int `json:"top_logprobs,omitempty"`
|
||||||
|
Dimensions int `json:"dimensions,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type OpenAITools struct {
|
type OpenAITools struct {
|
||||||
|
Loading…
Reference in New Issue
Block a user