Merge pull request #1925 from seefs001/feature/claude-context-editing

feat: claude context editing
This commit is contained in:
Seefs
2025-09-30 09:48:32 +08:00
committed by GitHub
6 changed files with 16 additions and 6 deletions

View File

@@ -72,6 +72,10 @@ func (a *Adaptor) SetupRequestHeader(c *gin.Context, req *http.Header, info *rel
anthropicVersion = "2023-06-01"
}
req.Set("anthropic-version", anthropicVersion)
anthropicBeta := c.Request.Header.Get("anthropic-beta")
if anthropicBeta != "" {
req.Set("anthropic-beta", anthropicBeta)
}
model_setting.GetClaudeSettings().WriteHeaders(info.OriginModelName, req)
return nil
}