Files
Beyhan Oğur 880f412e2c first commit
2026-04-26 21:52:23 +03:00

123 lines
3.6 KiB
YAML

# PydanticAI - Cohere-compatible Endpoints
# Reuses Cohere integration schemas
chat:
post:
operationId: pydanticaiCohereChat
summary: Chat with model (PydanticAI - Cohere format)
description: |
Sends a chat request using Cohere-compatible format via PydanticAI.
tags:
- PydanticAI 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: []
embed:
post:
operationId: pydanticaiCohereEmbed
summary: Create embeddings (PydanticAI - Cohere format)
description: |
Creates embeddings using Cohere-compatible format via PydanticAI.
tags:
- PydanticAI 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: []
tokenize:
post:
operationId: pydanticaiCohereTokenize
summary: Tokenize text (PydanticAI - Cohere format)
description: |
Tokenizes text using Cohere v1 API format via PydanticAI.
tags:
- PydanticAI 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: []