浏览代码

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

oza6ut0ne 5 月之前
父节点
当前提交
31cb1ca9e5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      server/routes.go

+ 1 - 1
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)
 	}