Class: RubyLLM::Providers::Bedrock

Inherits:
Object
  • Object
show all
Includes:
Embeddings
Defined in:
lib/legion/llm/call/bedrock_auth.rb,
lib/legion/llm/call/bedrock_embeddings.rb

Defined Under Namespace

Modules: Auth, Embeddings

Constant Summary

Constants included from Embeddings

Embeddings::COHERE_MAX_INPUT_BYTES, Embeddings::COHERE_MAX_TEXTS, Embeddings::COHERE_PREFIX, Embeddings::MODEL_ID_PATTERN, Embeddings::TITAN_ALLOWED_DIMENSIONS, Embeddings::TITAN_MAX_INPUT_BYTES, Embeddings::TITAN_V1_PREFIX, Embeddings::TITAN_V2_PREFIX

Class Method Summary collapse

Methods included from Embeddings

#embed, #embedding_url, #parse_embedding_response, #render_embedding_payload

Class Method Details

.configuration_requirementsObject



20
21
22
23
24
25
26
27
# File 'lib/legion/llm/call/bedrock_auth.rb', line 20

def configuration_requirements
  config = RubyLLM.config
  if config.bedrock_bearer_token
    %i[bedrock_bearer_token bedrock_region]
  else
    %i[bedrock_api_key bedrock_secret_key bedrock_region]
  end
end