mirror of
https://github.com/router-for-me/CLIProxyAPI.git
synced 2026-02-02 20:40:52 +08:00
refactor(antigravity): remove unused client signature handling in thinking objects
This commit is contained in:
@@ -124,11 +124,11 @@ func ConvertClaudeRequestToAntigravity(modelName string, inputRawJSON []byte, _
|
|||||||
if contentTypeResult.Type == gjson.String && contentTypeResult.String() == "thinking" {
|
if contentTypeResult.Type == gjson.String && contentTypeResult.String() == "thinking" {
|
||||||
// Use GetThinkingText to handle wrapped thinking objects
|
// Use GetThinkingText to handle wrapped thinking objects
|
||||||
thinkingText := thinking.GetThinkingText(contentResult)
|
thinkingText := thinking.GetThinkingText(contentResult)
|
||||||
signatureResult := contentResult.Get("signature")
|
// signatureResult := contentResult.Get("signature")
|
||||||
clientSignature := ""
|
// clientSignature := ""
|
||||||
if signatureResult.Exists() && signatureResult.String() != "" {
|
// if signatureResult.Exists() && signatureResult.String() != "" {
|
||||||
clientSignature = signatureResult.String()
|
// clientSignature = signatureResult.String()
|
||||||
}
|
// }
|
||||||
|
|
||||||
// Always try cached signature first (more reliable than client-provided)
|
// Always try cached signature first (more reliable than client-provided)
|
||||||
// Client may send stale or invalid signatures from different sessions
|
// Client may send stale or invalid signatures from different sessions
|
||||||
|
|||||||
Reference in New Issue
Block a user