Seneca Bedrock Chat is a plugin for Seneca
Expose AWS Bedrock LLM Chat API via standard sys:chat
message patterns.
This plugin is part of a family of plugins that wrap LLM Chat APIs.
Production Example: Voxgig Podmind
This open source module is sponsored and supported by Voxgig. |
---|
$ npm install @seneca/bedrock-chat
seneca.use('bedrock-chat')
let chatRes = await seneca.post('sys:chat,submit:query', {
query: 'what is devrel?',
})
// ==== { ok: true, answer: 'DevRel stands for Developer Relations...' }
Review the unit tests for more examples.
-
debug
: boolean -
global
: boolean -
bedrock
: object -
config
: object -
init$
: boolean
No description provided.
Invoke LLM with a prompt.
- prompt : string
- config : object
Submit a chat query, optionally specifying chat provider.
- query : string