diff --git a/_ml-commons-plugin/extensibility/connectors.md b/_ml-commons-plugin/extensibility/connectors.md index 09646f5e..3d361e9b 100644 --- a/_ml-commons-plugin/extensibility/connectors.md +++ b/_ml-commons-plugin/extensibility/connectors.md @@ -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,24 +426,28 @@ 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, - "protocol": "http", - "credential": { - "cohere_key": "..." - }, - "actions": [ - { - "action_type": "predict", - "method": "POST", - "url": "https://api.cohere.ai/v1/embed", - "headers": { - "Authorization": "Bearer ${credential.cohere_key}" - }, - "request_body": "{ \"texts\": ${parameters.prompt}, \"truncate\": \"END\" }" - } - ] + "name": "YOUR CONNECTOR NAME", + "description": "YOUR CONNECTOR DESCRIPTION", + "version": "YOUR CONNECTOR VERSION", + "protocol": "http", + "credential": { + "cohere_key": "ADD YOUR Cohere API KEY HERE" + }, + "parameters": { + "model": "embed-english-v2.0", + "truncate": "END" + }, + "actions": [ + { + "action_type": "predict", + "method": "POST", + "url": "https://api.cohere.ai/v1/embed", + "headers": { + "Authorization": "Bearer ${credential.cohere_key}" + }, + "request_body": "{ \"texts\": ${parameters.texts}, \"truncate\": \"${parameters.truncate}\", \"model\": \"${parameters.model}\" }" + } + ] } ``` {% include copy-curl.html %}