Add new Cohere connector blueprint (#4894)
* Update connectors.md Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> * Fix local connector example Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com> --------- Signed-off-by: Naarcha-AWS <97990722+Naarcha-AWS@users.noreply.github.com>
This commit is contained in:
parent
e907d90fcc
commit
7f9a06120d
|
@ -126,11 +126,6 @@ POST /_plugins/_ml/models/_register
|
|||
"function_name": "remote",
|
||||
"model_group_id": "lEFGL4kB4ubqQRzegPo2",
|
||||
"description": "test model",
|
||||
"connector": {
|
||||
"name": "openAI-gpt-3.5-turbo",
|
||||
"function_name": "remote",
|
||||
"model_group_id": "lEFGL4kB4ubqQRzegPo2",
|
||||
"description": "test model",
|
||||
"connector": {
|
||||
"name": "OpenAI Connector",
|
||||
"description": "The connector to public OpenAI model service for GPT 3.5",
|
||||
|
@ -431,12 +426,16 @@ The following example request creates a standalone Cohere connection:
|
|||
```json
|
||||
POST /_plugins/_ml/connectors/_create
|
||||
{
|
||||
"name": "Cohere Connector: embedding",
|
||||
"description": "The connector to cohere embedding model",
|
||||
"version": 1,
|
||||
"name": "YOUR CONNECTOR NAME",
|
||||
"description": "YOUR CONNECTOR DESCRIPTION",
|
||||
"version": "YOUR CONNECTOR VERSION",
|
||||
"protocol": "http",
|
||||
"credential": {
|
||||
"cohere_key": "..."
|
||||
"cohere_key": "ADD YOUR Cohere API KEY HERE"
|
||||
},
|
||||
"parameters": {
|
||||
"model": "embed-english-v2.0",
|
||||
"truncate": "END"
|
||||
},
|
||||
"actions": [
|
||||
{
|
||||
|
@ -446,7 +445,7 @@ POST /_plugins/_ml/connectors/_create
|
|||
"headers": {
|
||||
"Authorization": "Bearer ${credential.cohere_key}"
|
||||
},
|
||||
"request_body": "{ \"texts\": ${parameters.prompt}, \"truncate\": \"END\" }"
|
||||
"request_body": "{ \"texts\": ${parameters.texts}, \"truncate\": \"${parameters.truncate}\", \"model\": \"${parameters.model}\" }"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue