Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

openai: accept X-Stainless-Retry-Count header (#6910)

oza6ut0ne31cb1ca9e567
diff --git a/server/routes.go b/server/routes.go
index 5dfd6ffee..c13cd023f 100644
--- a/server/routes.go
+++ b/server/routes.go
@@ -1141,7 +1141,7 @@ func (s *Server) GenerateRoutes() http.Handler {
config.AllowWildcard = true
config.AllowBrowserExtensions = true
config.AllowHeaders = []string{"Authorization", "Content-Type", "User-Agent", "Accept", "X-Requested-With"}
- openAIProperties := []string{"lang", "package-version", "os", "arch", "runtime", "runtime-version", "async"}
+ openAIProperties := []string{"lang", "package-version", "os", "arch", "retry-count", "runtime", "runtime-version", "async"}
for _, prop := range openAIProperties {
config.AllowHeaders = append(config.AllowHeaders, "x-stainless-"+prop)
}