-
Notifications
You must be signed in to change notification settings - Fork 145
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
Added Connector Blueprint for AI21 Labs Jurassic-2 Mid #1613
Conversation
"content-type": "application/json" | ||
}, | ||
"url": "https://bedrock-runtime.${parameters.region}.amazonaws.com/model/${parameters.model_name}/invoke", | ||
"request_body": "{\r\n\"prompt\":\"${parameters.inputs}\",\r\n\"maxTokens\":200,\r\n\"temperature\":0.7,\r\n\"topP\":1,\r\n\"stopSequences\":[\r\n\r\n],\r\n\"countPenalty\":{\r\n\"scale\":0\r\n},\r\n\"presencePenalty\":{\r\n\"scale\":0\r\n},\r\n\"frequencyPenalty\":{\r\n\"scale\":0\r\n}\r\n}", |
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.
Can we remove \r\n
?
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.
Sure thing. I just pushed another commit with less escaping metadata. I tested before commit and it works just fine.
Codecov Report
@@ Coverage Diff @@
## main #1613 +/- ##
============================================
- Coverage 79.43% 79.43% -0.01%
+ Complexity 3982 3981 -1
============================================
Files 390 390
Lines 16215 16215
Branches 1751 1751
============================================
- Hits 12881 12880 -1
Misses 2660 2660
- Partials 674 675 +1
Flags with carried forward coverage won't be shown. Click here to find out more. |
* Connector blueprint for AI21 Labs Jurassic-2 Mid * Removed all \r\n (cherry picked from commit 568bc7e)
* Connector blueprint for AI21 Labs Jurassic-2 Mid * Removed all \r\n (cherry picked from commit 568bc7e) Co-authored-by: Ricardo Ferreira <[email protected]>
…oject#1613) * Connector blueprint for AI21 Labs Jurassic-2 Mid * Removed all \r\n
Description
It provides a functional example of a connector blueprint to connect with AI21 Labs Jurassic to execute inferences outside OpenSearch using the remote models functionality.
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.