Module: RubyLLM::Providers::Anthropic::Chat

Defined in:
lib/swarm_sdk/ruby_llm_patches/configuration_patch.rb

Overview

Fix completion_url to use relative path (no leading slash). The leading slash causes Faraday to discard the base URL path component, breaking proxy configurations where api_base includes a path segment (e.g., proxy.dev/apis/anthropic/v1/messagesproxy.dev/v1/messages). stream_url delegates to completion_url, so this fixes both sync and streaming. Can be removed once RubyLLM releases a version including upstream fix (commit da6144b).

Instance Method Summary collapse

Instance Method Details

#completion_urlObject



48
49
50
# File 'lib/swarm_sdk/ruby_llm_patches/configuration_patch.rb', line 48

def completion_url
  "v1/messages"
end