Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
c075b6a
#16: Add AWS Bedrock support
tpaulshippy Mar 19, 2025
b30b7ea
#16: Refactor bedrock to look more like other providers
tpaulshippy Mar 19, 2025
88ef94d
#16 Get bedrock models
tpaulshippy Mar 19, 2025
2d9136d
#16: Remove debug prints
tpaulshippy Mar 19, 2025
4ea7405
#16: Move signature to separate file
tpaulshippy Mar 19, 2025
1a04303
#16: Bring in signing code from aws-sdk-ruby
tpaulshippy Mar 19, 2025
6bf2a4a
#16: Remove some unneeded methods
tpaulshippy Mar 19, 2025
641c916
#16: Get completion working
tpaulshippy Mar 19, 2025
5bf4b1f
#16: Get streaming working
tpaulshippy Mar 19, 2025
82158b2
#16: Remove references to Titan
tpaulshippy Mar 19, 2025
ba937c8
#16: Restore original models list
tpaulshippy Mar 19, 2025
1bcb8a0
#16: Bring in bedrock models
tpaulshippy Mar 20, 2025
728bbf8
16: Refactor capabilities for consistency
tpaulshippy Mar 20, 2025
09aab0a
16: Remove some unneeded code
tpaulshippy Mar 20, 2025
600151b
#16: Update claude family and pricing
tpaulshippy Mar 20, 2025
f2c86f3
Merge branch 'crmne:main' into 16-bedrock
tpaulshippy Mar 23, 2025
88c3304
Take a stab at an initial aliases file
tpaulshippy Mar 23, 2025
09e1cfb
Merge branch 'main' into 16-bedrock
tpaulshippy Mar 23, 2025
c2a9d28
Merge aliases.json
tpaulshippy Mar 23, 2025
b96505b
Fix some small bedrock payload render issues
tpaulshippy Mar 23, 2025
50684b1
Support switching model based on provider
tpaulshippy Mar 23, 2025
12029e8
Add doc on bedrock usage
tpaulshippy Mar 23, 2025
f4901c0
Improve var name in example
tpaulshippy Mar 23, 2025
3ac1313
Add us. to Claude 3.7 model ID to use cross-region inference profile
tpaulshippy Mar 24, 2025
91ece39
Undo rake changes that should probably be a separate PR
tpaulshippy Mar 24, 2025
6d46985
Blank line
tpaulshippy Mar 24, 2025
b07687b
bundle exec rubocop -A
tpaulshippy Mar 24, 2025
fa54026
Resolve simpler rubocop offenses
tpaulshippy Mar 24, 2025
85538cc
Merge branch 'main' into 16-bedrock
tpaulshippy Mar 25, 2025
e9d99e2
Remove unneeded change after merge
tpaulshippy Mar 25, 2025
a02c1ec
Remove unneeded guide
tpaulshippy Mar 25, 2025
683604c
Add new optional keys to config
tpaulshippy Mar 25, 2025
fd1a777
Remove as we will not extend Bedrock elsewhere
tpaulshippy Mar 25, 2025
ed53198
Add config requirements and remove extra error class
tpaulshippy Mar 25, 2025
e2cbbf4
Add bedrock call to cassettes for models_refresh tests
tpaulshippy Mar 25, 2025
108f752
Add chat spec for bedrock
tpaulshippy Mar 25, 2025
8838b5f
Improve building claude messages
tpaulshippy Mar 25, 2025
74447a8
Get streaming test working
tpaulshippy Mar 25, 2025
2420bf4
Get streaming working with tests
tpaulshippy Mar 25, 2025
4cffcc5
Get tools working with Bedrock
tpaulshippy Mar 25, 2025
da861cc
Separate concerns in HTTP layer
tpaulshippy Mar 25, 2025
79dac6a
Remove extra verbose methods
tpaulshippy Mar 25, 2025
9bc7f57
Fix model refresh after previous refactor
tpaulshippy Mar 25, 2025
e9021c3
Fix signature by including full URL
tpaulshippy Mar 25, 2025
5ed222f
Refactor handle_stream for bedrock into smaller methods
tpaulshippy Mar 25, 2025
1f5a34d
rubocop -A
tpaulshippy Mar 25, 2025
30d44dd
Refactor extract_content and find_next_prelude into smaller methods
tpaulshippy Mar 25, 2025
000fcbb
Refactor process_payload and process_json_data
tpaulshippy Mar 25, 2025
7737415
Refactor sign_request into smaller methods
tpaulshippy Mar 25, 2025
24fd8de
Refactor some methods in capabilities.rb
tpaulshippy Mar 25, 2025
0bbddf3
Refactor parse_list_models_response
tpaulshippy Mar 25, 2025
9d6d31c
Ignore unused method that is passed from library
tpaulshippy Mar 25, 2025
9346762
Refactor process_message
tpaulshippy Mar 25, 2025
64e80e3
Refactor sha256_hexdigest
tpaulshippy Mar 25, 2025
88573cf
Refactor normalized_querystring
tpaulshippy Mar 25, 2025
7e0a3df
Refactor sign_request
tpaulshippy Mar 26, 2025
73052db
Refactor build_signature_response and compare_param_components
tpaulshippy Mar 26, 2025
52ac83d
Name some parameters
tpaulshippy Mar 26, 2025
226b24a
Split bedrock streaming into separate smaller modules
tpaulshippy Mar 26, 2025
a80149f
Refactor some methods in signing
tpaulshippy Mar 26, 2025
f6099d3
Refactor build_signature_components
tpaulshippy Mar 26, 2025
5d8184c
Split Signer into smaller classes
tpaulshippy Mar 26, 2025
611a32c
Refactor extract_components
tpaulshippy Mar 26, 2025
1a2825d
Refactor build_result
tpaulshippy Mar 26, 2025
8809f39
Refactor signature generation methods
tpaulshippy Mar 26, 2025
d05817f
Refactor create_canonical_request
tpaulshippy Mar 26, 2025
533b9dc
Refactor create_components
tpaulshippy Mar 26, 2025
7d82e52
Refactor Signer init
tpaulshippy Mar 26, 2025
eb20d95
Refactor sign_request
tpaulshippy Mar 26, 2025
6fc8b92
Merge branch 'main' into 16-bedrock
tpaulshippy Mar 26, 2025
468df04
Include Apache license and notice from AWS SDK for Ruby
tpaulshippy Mar 26, 2025
296d1ae
Update some capabilities
tpaulshippy Mar 26, 2025
01e9076
Update more capabilities
tpaulshippy Mar 26, 2025
69d1628
Fix specs based on cassettes with us-west-2 in URL
tpaulshippy Mar 26, 2025
96f63b6
Merge from main
tpaulshippy Mar 26, 2025
13a8b35
Merge branch 'main' into 16-bedrock
tpaulshippy Mar 26, 2025
39854ab
Remove unused methods in content_extraction
tpaulshippy Mar 26, 2025
204a9c3
Remove unused methods in signing
tpaulshippy Mar 26, 2025
47ae382
Remove support for other kinds of signatures
tpaulshippy Mar 26, 2025
62662c8
Remove query string normalization code
tpaulshippy Mar 26, 2025
a2775d6
Remove support for hashing non-strings
tpaulshippy Mar 26, 2025
f14d276
Remove unneeded handle_error_response method
tpaulshippy Mar 26, 2025
9b11f49
Refactor some length checks
tpaulshippy Mar 26, 2025
d18e019
Add spec to cover prelude handling sad paths
tpaulshippy Mar 26, 2025
08e7f24
Remove spec that was added for coverage and violated rubocop a bunch
tpaulshippy Mar 26, 2025
801b42d
Use JSON.generate that does not encode non-ASCII characters
tpaulshippy Mar 31, 2025
14df4ec
Add support for system messages
tpaulshippy Mar 31, 2025
b0a3b2f
Merge branch 'main' into 16-bedrock
tpaulshippy Apr 1, 2025
7510ba7
Remove duplicate error class
tpaulshippy Apr 1, 2025
dc8152f
Get the legal stuff right
tpaulshippy Apr 1, 2025
aee80e3
Remove default region for Bedrock
tpaulshippy Apr 1, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
202 changes: 202 additions & 0 deletions LICENSES/APACHE-2.0.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,202 @@

Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.

"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.

"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:

(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and

(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and

(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and

(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.

You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.

5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.

6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.

7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.

8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.

9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS

APPENDIX: How to apply the Apache License to your work.

To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
31 changes: 31 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
RubyLLM Project
Copyright 2025 Carmine Paolino. All Rights Reserved.
Licensed under the MIT License.

This project includes software developed by third parties, licensed under
terms compatible with the MIT License. The required notices and license
texts are included below and/or in the LICENSES/ directory.

--------------------------------------------------------------------------

This project incorporates code from aws-sdk-ruby.
The original NOTICE file for aws-sdk-ruby contains the following:

--- BEGIN aws-sdk-ruby NOTICE ---
AWS SDK for Ruby
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
--- END aws-sdk-ruby NOTICE ---

The aws-sdk-ruby components used in this project are licensed under the
Apache License, Version 2.0 (the "License"). You may obtain a copy of
the License at:

LICENSES/APACHE-2.0.txt

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

--------------------------------------------------------------------------
12 changes: 8 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,14 @@ Configure with your API keys:

```ruby
RubyLLM.configure do |config|
config.openai_api_key = ENV['OPENAI_API_KEY']
config.anthropic_api_key = ENV['ANTHROPIC_API_KEY']
config.gemini_api_key = ENV['GEMINI_API_KEY']
config.deepseek_api_key = ENV['DEEPSEEK_API_KEY']
config.openai_api_key = ENV.fetch('OPENAI_API_KEY', nil)
config.anthropic_api_key = ENV.fetch('ANTHROPIC_API_KEY', nil)
config.gemini_api_key = ENV.fetch('GEMINI_API_KEY', nil)
config.deepseek_api_key = ENV.fetch('DEEPSEEK_API_KEY', nil)
config.bedrock_api_key = ENV.fetch('AWS_ACCESS_KEY_ID', nil)
config.bedrock_secret_key = ENV.fetch('AWS_SECRET_ACCESS_KEY', nil)
config.bedrock_region = ENV.fetch('AWS_REGION', nil)
config.bedrock_session_token = ENV.fetch('AWS_SESSION_TOKEN', nil)
end
```

Expand Down
4 changes: 4 additions & 0 deletions bin/console
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ RubyLLM.configure do |config|
config.anthropic_api_key = ENV.fetch('ANTHROPIC_API_KEY', nil)
config.gemini_api_key = ENV.fetch('GEMINI_API_KEY', nil)
config.deepseek_api_key = ENV.fetch('DEEPSEEK_API_KEY', nil)
config.bedrock_api_key = ENV.fetch('AWS_ACCESS_KEY_ID', nil)
config.bedrock_secret_key = ENV.fetch('AWS_SECRET_ACCESS_KEY', nil)
config.bedrock_region = ENV.fetch('AWS_REGION', nil)
config.bedrock_session_token = ENV.fetch('AWS_SESSION_TOKEN', nil)
end

IRB.start(__FILE__)
12 changes: 8 additions & 4 deletions docs/guides/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,14 @@ require 'ruby_llm'

RubyLLM.configure do |config|
# Add the API keys you have available
config.openai_api_key = ENV['OPENAI_API_KEY']
config.anthropic_api_key = ENV['ANTHROPIC_API_KEY']
config.gemini_api_key = ENV['GEMINI_API_KEY']
config.deepseek_api_key = ENV['DEEPSEEK_API_KEY']
config.openai_api_key = ENV.fetch('OPENAI_API_KEY', nil)
config.anthropic_api_key = ENV.fetch('ANTHROPIC_API_KEY', nil)
config.gemini_api_key = ENV.fetch('GEMINI_API_KEY', nil)
config.deepseek_api_key = ENV.fetch('DEEPSEEK_API_KEY', nil)
config.bedrock_api_key = ENV.fetch('AWS_ACCESS_KEY_ID', nil)
config.bedrock_secret_key = ENV.fetch('AWS_SECRET_ACCESS_KEY', nil)
config.bedrock_region = ENV.fetch('AWS_REGION', nil)
config.bedrock_session_token = ENV.fetch('AWS_SESSION_TOKEN', nil)
end
```

Expand Down
12 changes: 8 additions & 4 deletions docs/guides/rails.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,10 +92,14 @@ In an initializer (e.g., `config/initializers/ruby_llm.rb`):

```ruby
RubyLLM.configure do |config|
config.openai_api_key = ENV['OPENAI_API_KEY']
config.anthropic_api_key = ENV['ANTHROPIC_API_KEY']
config.gemini_api_key = ENV['GEMINI_API_KEY']
config.deepseek_api_key = ENV['DEEPSEEK_API_KEY']
config.openai_api_key = ENV.fetch('OPENAI_API_KEY', nil)
config.anthropic_api_key = ENV.fetch('ANTHROPIC_API_KEY', nil)
config.gemini_api_key = ENV.fetch('GEMINI_API_KEY', nil)
config.deepseek_api_key = ENV.fetch('DEEPSEEK_API_KEY', nil)
config.bedrock_api_key = ENV.fetch('AWS_ACCESS_KEY_ID', nil)
config.bedrock_secret_key = ENV.fetch('AWS_SECRET_ACCESS_KEY', nil)
config.bedrock_region = ENV.fetch('AWS_REGION', nil)
config.bedrock_session_token = ENV.fetch('AWS_SESSION_TOKEN', nil)
end
```

Expand Down
12 changes: 8 additions & 4 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,14 @@ require 'ruby_llm'

RubyLLM.configure do |config|
# Required: At least one API key
config.openai_api_key = ENV['OPENAI_API_KEY']
config.anthropic_api_key = ENV['ANTHROPIC_API_KEY']
config.gemini_api_key = ENV['GEMINI_API_KEY']
config.deepseek_api_key = ENV['DEEPSEEK_API_KEY']
config.openai_api_key = ENV.fetch('OPENAI_API_KEY', nil)
config.anthropic_api_key = ENV.fetch('ANTHROPIC_API_KEY', nil)
config.gemini_api_key = ENV.fetch('GEMINI_API_KEY', nil)
config.deepseek_api_key = ENV.fetch('DEEPSEEK_API_KEY', nil)
config.bedrock_api_key = ENV.fetch('AWS_ACCESS_KEY_ID', nil)
config.bedrock_secret_key = ENV.fetch('AWS_SECRET_ACCESS_KEY', nil)
config.bedrock_region = ENV.fetch('AWS_REGION', nil)
config.bedrock_session_token = ENV.fetch('AWS_SESSION_TOKEN', nil)

# Optional: Set default models
config.default_model = 'gpt-4o-mini' # Default chat model
Expand Down
4 changes: 3 additions & 1 deletion lib/ruby_llm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
'llm' => 'LLM',
'openai' => 'OpenAI',
'api' => 'API',
'deepseek' => 'DeepSeek'
'deepseek' => 'DeepSeek',
'bedrock' => 'Bedrock'
)
loader.ignore("#{__dir__}/tasks")
loader.ignore("#{__dir__}/ruby_llm/railtie")
Expand Down Expand Up @@ -71,6 +72,7 @@ def logger
RubyLLM::Provider.register :anthropic, RubyLLM::Providers::Anthropic
RubyLLM::Provider.register :gemini, RubyLLM::Providers::Gemini
RubyLLM::Provider.register :deepseek, RubyLLM::Providers::DeepSeek
RubyLLM::Provider.register :bedrock, RubyLLM::Providers::Bedrock

if defined?(Rails::Railtie)
require 'ruby_llm/railtie'
Expand Down
29 changes: 22 additions & 7 deletions lib/ruby_llm/aliases.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,39 @@
{
"claude-3-5-sonnet": {
"anthropic": "claude-3-5-sonnet-20241022"
"anthropic": "claude-3-5-sonnet-20241022",
"bedrock": "anthropic.claude-3-5-sonnet-20241022-v2:0"
},
"claude-3-5-haiku": {
"anthropic": "claude-3-5-haiku-20241022"
"anthropic": "claude-3-5-haiku-20241022",
"bedrock": "anthropic.claude-3-5-haiku-20241022-v1:0"
},
"claude-3-7-sonnet": {
"anthropic": "claude-3-7-sonnet-20250219"
"anthropic": "claude-3-7-sonnet-20250219",
"bedrock": "us.anthropic.claude-3-7-sonnet-20250219-v1:0"
},
"claude-3-opus": {
"anthropic": "claude-3-opus-20240229"
"anthropic": "claude-3-opus-20240229",
"bedrock": "anthropic.claude-3-opus-20240229-v1:0"
},
"claude-3-sonnet": {
"anthropic": "claude-3-sonnet-20240229"
"anthropic": "claude-3-sonnet-20240229",
"bedrock": "anthropic.claude-3-sonnet-20240229-v1:0"
},
"claude-3-haiku": {
"anthropic": "claude-3-haiku-20240307"
"anthropic": "claude-3-haiku-20240307",
"bedrock": "anthropic.claude-3-haiku-20240307-v1:0"
},
"claude-3": {
"anthropic": "claude-3-sonnet-20240229"
"anthropic": "claude-3-sonnet-20240229",
"bedrock": "anthropic.claude-3-sonnet-20240229-v1:0"
},
"claude-2": {
"anthropic": "claude-2.0",
"bedrock": "anthropic.claude-2.0"
},
"claude-2-1": {
"anthropic": "claude-2.1",
"bedrock": "anthropic.claude-2.1"
},
"gpt-4o": {
"openai": "gpt-4o-2024-11-20"
Expand Down
4 changes: 4 additions & 0 deletions lib/ruby_llm/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ class Configuration
:anthropic_api_key,
:gemini_api_key,
:deepseek_api_key,
:bedrock_api_key,
:bedrock_secret_key,
:bedrock_region,
:bedrock_session_token,
:default_model,
:default_embedding_model,
:default_image_model,
Expand Down
Loading