mirror of
https://github.com/we-promise/sure.git
synced 2026-12-03 10:49:07 +08:00
Merge AI plumbing 2a into 2b
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016zAWUV2Sxn9CgsmcUqojAZ
This commit is contained in:
@@ -69,7 +69,7 @@ module Ai::Transport::Http
|
||||
::OpenAI::Client.new(**options, &faraday_options(base || OPENAI_BASE))
|
||||
end
|
||||
|
||||
# The anthropic gem's client: model listing and the Anthropic PDF probe. It takes no proxy.
|
||||
# The anthropic gem's client, for the Anthropic PDF probe, as PDF import uses it. It takes no proxy.
|
||||
def anthropic_client(endpoint, timeout: endpoint.timeout_seconds)
|
||||
options = { api_key: endpoint.api_key.to_s, max_retries: 0, timeout: }
|
||||
options[:base_url] = endpoint.base_url if endpoint.base_url.present?
|
||||
|
||||
Reference in New Issue
Block a user