feat(runtime): 适配推理模式开关
This commit is contained in:
@@ -1295,6 +1295,9 @@ func validateRequest(kind string, body map[string]any) error {
|
||||
if body["messages"] == nil {
|
||||
return errors.New("messages is required")
|
||||
}
|
||||
if err := clients.ValidateOpenAIReasoningEffort(body["reasoning_effort"]); err != nil {
|
||||
return err
|
||||
}
|
||||
case "responses":
|
||||
if body["input"] == nil && body["messages"] == nil {
|
||||
return errors.New("input or messages is required")
|
||||
|
||||
Reference in New Issue
Block a user