mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-02 04:20:50 +08:00
fix(translators): correct key path for system_instruction.parts in Claude request logic
This commit is contained in:
@@ -56,7 +56,7 @@ func ConvertClaudeRequestToGemini(modelName string, inputRawJSON []byte, _ bool)
|
|||||||
out, _ = sjson.SetRaw(out, "system_instruction", systemInstruction)
|
out, _ = sjson.SetRaw(out, "system_instruction", systemInstruction)
|
||||||
}
|
}
|
||||||
} else if systemResult.Type == gjson.String {
|
} else if systemResult.Type == gjson.String {
|
||||||
out, _ = sjson.Set(out, "request.system_instruction.parts.-1.text", systemResult.String())
|
out, _ = sjson.Set(out, "system_instruction.parts.-1.text", systemResult.String())
|
||||||
}
|
}
|
||||||
|
|
||||||
// contents
|
// contents
|
||||||
|
|||||||
Reference in New Issue
Block a user