Files
bifrost/docs/openapi/paths/integrations/openai/embeddings.yaml
Beyhan Oğur 880f412e2c first commit
2026-04-26 21:52:23 +03:00

76 lines
2.1 KiB
YAML

# OpenAI Integration - Embeddings Endpoints
embeddings:
post:
operationId: openaiCreateEmbedding
summary: Create embeddings (OpenAI format)
description: |
Creates embedding vectors for the input text.
**Note:** This endpoint also works without the `/v1` prefix (e.g., `/openai/embeddings`).
tags:
- OpenAI Integration
requestBody:
required: true
content:
application/json:
schema:
$ref: '../../../schemas/integrations/openai/embeddings.yaml#/OpenAIEmbeddingRequest'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '../../../schemas/integrations/openai/embeddings.yaml#/OpenAIEmbeddingResponse'
'400':
$ref: '../../../openapi.yaml#/components/responses/BadRequest'
'500':
$ref: '../../../openapi.yaml#/components/responses/InternalError'
security:
- BearerAuth: []
- BasicAuth: []
- VirtualKeyAuth: []
- ApiKeyAuth: []
azure-embeddings:
post:
operationId: azureCreateEmbedding
summary: Create embeddings (Azure OpenAI)
tags:
- OpenAI Integration
- Azure Integration
parameters:
- name: deployment-id
in: path
required: true
schema:
type: string
description: Azure deployment ID
- name: api-version
in: query
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: '../../../schemas/integrations/openai/embeddings.yaml#/OpenAIEmbeddingRequest'
responses:
'200':
description: Successful response
content:
application/json:
schema:
$ref: '../../../schemas/integrations/openai/embeddings.yaml#/OpenAIEmbeddingResponse'
'400':
$ref: '../../../openapi.yaml#/components/responses/BadRequest'
'500':
$ref: '../../../openapi.yaml#/components/responses/InternalError'
security:
- BearerAuth: []
- BasicAuth: []
- VirtualKeyAuth: []
- ApiKeyAuth: []