Added NeMo Guardrails Chat component (#3331)

* added: nemoguardrails chat component

* fix: removed options argument from init

fix: generation text has been updated with content string

* fix: lint error fixed

* fix: error when get content

* fix: lint errors

* updated: added handleLLMNewToken for ChatNemoGuardrails

---------

Co-authored-by: patrick <patrick.alves@br.experian.com>
This commit is contained in:
patrickreinan
2024-10-16 21:59:10 -03:00
committed by GitHub
parent d1adc4fb1c
commit 5117948ccf
4 changed files with 214 additions and 0 deletions
@@ -0,0 +1,18 @@
Parameters:
config_id
baseUrl
```
/v1/chat/completions
```
```json
{
"config_id": "bedrock",
"messages": [{
"role":"user",
"content":"Hello! What can you do for me?"
}]
}
```