Skip to content
代码片段 群组 项目
未验证 提交 f9c6b3d5 编辑于 作者: Alejandro Rodríguez's avatar Alejandro Rodríguez 提交者: GitLab
浏览文件

Merge branch 'add-anthropic-version-header' into 'master'

Add anthropic version header to experimentation api

See merge request https://gitlab.com/gitlab-org/gitlab/-/merge_requests/152461



Merged-by: default avatarAlejandro Rodríguez <alejandro@gitlab.com>
Approved-by: default avatarIan Baum <ibaum@gitlab.com>
Approved-by: default avatarAlejandro Rodríguez <alejandro@gitlab.com>
Reviewed-by: default avatarIan Baum <ibaum@gitlab.com>
Reviewed-by: default avatarHunter Stewart <hustewart@gitlab.com>
Co-authored-by: default avatarMichael Thomas <micthomas@gitlab.com>
No related branches found
No related tags found
无相关合并请求
...@@ -26,6 +26,7 @@ def anthropic_post(endpoint, json_body: nil) ...@@ -26,6 +26,7 @@ def anthropic_post(endpoint, json_body: nil)
headers = { headers = {
"Accept" => ["application/json"], "Accept" => ["application/json"],
"Content-Type" => ["application/json"], "Content-Type" => ["application/json"],
"anthropic-version" => "2023-06-01",
"X-Api-Key" => [anthropic_api_key] "X-Api-Key" => [anthropic_api_key]
} }
......
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
{ {
'Accept' => ['application/json'], 'Accept' => ['application/json'],
'Content-Type' => ['application/json'], 'Content-Type' => ['application/json'],
'anthropic-version' => ['2023-06-01'],
'X-Api-Key' => [anthropic_api_key] 'X-Api-Key' => [anthropic_api_key]
} }
end end
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册