first commit
This commit is contained in:
43
docs/openapi/paths/integrations/cohere/chat.yaml
Normal file
43
docs/openapi/paths/integrations/cohere/chat.yaml
Normal file
@@ -0,0 +1,43 @@
|
||||
# Cohere - Chat Endpoints
|
||||
|
||||
chat:
|
||||
post:
|
||||
operationId: cohereChatV2
|
||||
summary: Chat with model (Cohere v2 format)
|
||||
description: |
|
||||
Sends a chat request using Cohere v2 API format.
|
||||
tags:
|
||||
- Cohere Integration
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '../../../schemas/integrations/cohere/chat.yaml#/CohereChatRequest'
|
||||
responses:
|
||||
'200':
|
||||
description: Successful response
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '../../../schemas/integrations/cohere/chat.yaml#/CohereChatResponse'
|
||||
text/event-stream:
|
||||
schema:
|
||||
$ref: '../../../schemas/integrations/cohere/chat.yaml#/CohereChatStreamEvent'
|
||||
'400':
|
||||
description: Bad request
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '../../../schemas/integrations/cohere/common.yaml#/CohereError'
|
||||
'500':
|
||||
description: Internal server error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '../../../schemas/integrations/cohere/common.yaml#/CohereError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
- BasicAuth: []
|
||||
- VirtualKeyAuth: []
|
||||
- ApiKeyAuth: []
|
||||
40
docs/openapi/paths/integrations/cohere/embed.yaml
Normal file
40
docs/openapi/paths/integrations/cohere/embed.yaml
Normal file
@@ -0,0 +1,40 @@
|
||||
# Cohere - Embed Endpoints
|
||||
|
||||
embed:
|
||||
post:
|
||||
operationId: cohereEmbedV2
|
||||
summary: Create embeddings (Cohere v2 format)
|
||||
description: |
|
||||
Creates embeddings using Cohere v2 API format.
|
||||
tags:
|
||||
- Cohere Integration
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '../../../schemas/integrations/cohere/embed.yaml#/CohereEmbeddingRequest'
|
||||
responses:
|
||||
'200':
|
||||
description: Successful response
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '../../../schemas/integrations/cohere/embed.yaml#/CohereEmbeddingResponse'
|
||||
'400':
|
||||
description: Bad request
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '../../../schemas/integrations/cohere/common.yaml#/CohereError'
|
||||
'500':
|
||||
description: Internal server error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '../../../schemas/integrations/cohere/common.yaml#/CohereError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
- BasicAuth: []
|
||||
- VirtualKeyAuth: []
|
||||
- ApiKeyAuth: []
|
||||
40
docs/openapi/paths/integrations/cohere/tokenize.yaml
Normal file
40
docs/openapi/paths/integrations/cohere/tokenize.yaml
Normal file
@@ -0,0 +1,40 @@
|
||||
# Cohere - Tokenize Endpoints
|
||||
|
||||
tokenize:
|
||||
post:
|
||||
operationId: cohereTokenize
|
||||
summary: Tokenize text (Cohere format)
|
||||
description: |
|
||||
Tokenizes text using Cohere v1 API format.
|
||||
tags:
|
||||
- Cohere Integration
|
||||
requestBody:
|
||||
required: true
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '../../../schemas/integrations/cohere/tokenize.yaml#/CohereCountTokensRequest'
|
||||
responses:
|
||||
'200':
|
||||
description: Successful response
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '../../../schemas/integrations/cohere/tokenize.yaml#/CohereCountTokensResponse'
|
||||
'400':
|
||||
description: Bad request
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '../../../schemas/integrations/cohere/common.yaml#/CohereError'
|
||||
'500':
|
||||
description: Internal server error
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '../../../schemas/integrations/cohere/common.yaml#/CohereError'
|
||||
security:
|
||||
- BearerAuth: []
|
||||
- BasicAuth: []
|
||||
- VirtualKeyAuth: []
|
||||
- ApiKeyAuth: []
|
||||
Reference in New Issue
Block a user