mirror of
https://github.com/QuantumNous/new-api.git
synced 2026-09-12 23:30:35 +00:00
fix(relay): preserve presence/frequency penalty in Responses conversion (#6654)
This commit is contained in:
@@ -867,6 +867,11 @@ type OpenAIResponsesRequest struct {
|
||||
Metadata json.RawMessage `json:"metadata,omitempty"`
|
||||
Moderation json.RawMessage `json:"moderation,omitempty"`
|
||||
ParallelToolCalls json.RawMessage `json:"parallel_tool_calls,omitempty"`
|
||||
// FrequencyPenalty/PresencePenalty are not part of the official OpenAI
|
||||
// Responses API; they are forwarded verbatim for OpenAI-compatible upstreams
|
||||
// (e.g. vLLM) that accept them.
|
||||
FrequencyPenalty json.RawMessage `json:"frequency_penalty,omitempty"`
|
||||
PresencePenalty json.RawMessage `json:"presence_penalty,omitempty"`
|
||||
PreviousResponseID string `json:"previous_response_id,omitempty"`
|
||||
Reasoning *Reasoning `json:"reasoning,omitempty"`
|
||||
// ServiceTier specifies upstream service level and may affect billing.
|
||||
|
||||
Reference in New Issue
Block a user