-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add llama370b_instruct_v1 #4
base: main
Are you sure you want to change the base?
Changes from all commits
b297a9f
eb03150
dd618fa
06250c7
2ba8238
98eb706
d3fdca2
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -63,16 +63,14 @@ client = RubyAmazonBedrock::Client.new( | |
) | ||
``` | ||
|
||
## With Configuration | ||
### AWS Named Profiles | ||
|
||
```ruby | ||
RubyAmazonBedrock.configure do |config| | ||
config.region = ENV.fetch('AWS_REGION', nil) | ||
config.access_key_id = ENV.fetch('AWS_ACCESS_KEY_ID', nil) | ||
config.secret_access_key = ENV.fetch('AWS_SECRET_ACCESS_KEY', nil) | ||
end | ||
You can also use [AWS Named Profiles](https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html#cli-configure-files-format-profile) by passing the `profile` keywoard argument. When using a named profile, specyfing the `region`, `access_key_id` and `access_token` won't be required. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Don't remove the With Configuration documentation, you can add the AWS Named Profiles note below that. |
||
|
||
client = RubyAmazonBedrock::Client.new | ||
```ruby | ||
client = RubyAmazonBedrock::Client.new( | ||
profile: "AWS_PROFILE" | ||
) | ||
``` | ||
|
||
## Options | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module RubyAmazonBedrock | ||
VERSION = "0.2.3" | ||
VERSION = "0.2.5" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's keep it to 0.2.4 version |
||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# frozen_string_literal: true | ||
|
||
module RubyAmazonBedrock | ||
module PayloadBuilders | ||
module Meta | ||
# Llama370bInstructV1 is a subclass of Base. It provides functionalities specific to the Meta | ||
# Llama 3 70B Instruct model. | ||
# | ||
# @see https://us-west-2.console.aws.amazon.com/bedrock/home?region=us-west-2#/providers?model=meta.llama3-70b-instruct-v1:0 | ||
# for more information about the Meta model. | ||
class Llama370bInstructV1 < Base | ||
# Returns the model ID for the Meta Llama 3 70B Instruct model. | ||
# | ||
# @return [String] 'meta.llama2-70b-chat-v1:0' | ||
def model_id | ||
'meta.llama3-70b-instruct-v1:0' | ||
end | ||
end | ||
end | ||
end | ||
end |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,8 @@ | |
described_class.new( | ||
region: ENV.fetch('AWS_REGION', nil), | ||
access_key_id: ENV.fetch('AWS_ACCESS_KEY_ID', nil), | ||
secret_access_key: ENV.fetch('AWS_SECRET_ACCESS_KEY', nil) | ||
secret_access_key: ENV.fetch('AWS_SECRET_ACCESS_KEY', nil), | ||
profile: ENV.fetch('AWS_PROFILE', nil) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please add a new test scenario where the client instantiation is done without the |
||
) | ||
end | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi @ErebusBat let's add all your changes to the same version, please add the following notes to the CHANGELOG