feat: /v1/responses perplexity

This commit is contained in:
Seefs
2026-02-02 14:48:45 +08:00
parent 2c29993cfc
commit b6dc75cb86
2 changed files with 9 additions and 3 deletions

View File

@@ -817,7 +817,10 @@ type OpenAIResponsesRequest struct {
User string `json:"user,omitempty"`
MaxToolCalls uint `json:"max_tool_calls,omitempty"`
Prompt json.RawMessage `json:"prompt,omitempty"`
EnableThinking json.RawMessage `json:"enable_thinking,omitempty"`
// qwen
EnableThinking json.RawMessage `json:"enable_thinking,omitempty"`
// perplexity
Preset json.RawMessage `json:"preset,omitempty"`
}
func (r *OpenAIResponsesRequest) GetTokenCountMeta() *types.TokenCountMeta {