From 351a85d9ea0db108ca29bba48d0a04e37c6e3607 Mon Sep 17 00:00:00 2001 From: Lucas Hahn <50808857+lucasthahn@users.noreply.github.com> Date: Thu, 20 Feb 2025 00:56:18 -0500 Subject: [PATCH] openai: add 'timeout' to allowable x-stainless headers (#9237) --- server/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routes.go b/server/routes.go index 95485cb81..9cefb6077 100644 --- a/server/routes.go +++ b/server/routes.go @@ -1131,7 +1131,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", "retry-count", "runtime", "runtime-version", "async", "helper-method", "poll-helper", "custom-poll-interval"} + openAIProperties := []string{"lang", "package-version", "os", "arch", "retry-count", "runtime", "runtime-version", "async", "helper-method", "poll-helper", "custom-poll-interval", "timeout"} for _, prop := range openAIProperties { config.AllowHeaders = append(config.AllowHeaders, "x-stainless-"+prop) }