From 31cb1ca9e567fac7f940d041d9c5f45032dd8972 Mon Sep 17 00:00:00 2001 From: oza6ut0ne <33759728+oza6ut0ne@users.noreply.github.com> Date: Sun, 24 Nov 2024 05:39:05 +0900 Subject: [PATCH] openai: accept X-Stainless-Retry-Count header (#6910) --- server/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routes.go b/server/routes.go index 5dfd6ffe..c13cd023 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) }