139 lines
4.0 KiB
YAML
139 lines
4.0 KiB
YAML
# PydanticAI - GenAI (Gemini) compatible Endpoints
|
|
# Reuses GenAI integration schemas
|
|
|
|
models:
|
|
get:
|
|
operationId: pydanticaiGeminiListModels
|
|
summary: List models (PydanticAI - Gemini format)
|
|
description: |
|
|
Lists available models in Google Gemini API format via PydanticAI.
|
|
tags:
|
|
- PydanticAI Integration
|
|
parameters:
|
|
- name: pageSize
|
|
in: query
|
|
schema:
|
|
type: integer
|
|
description: Maximum number of models to return
|
|
- name: pageToken
|
|
in: query
|
|
schema:
|
|
type: string
|
|
description: Page token for pagination
|
|
responses:
|
|
'200':
|
|
description: Successful response
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '../../../schemas/integrations/genai/common.yaml#/GeminiListModelsResponse'
|
|
'400':
|
|
description: Bad request
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '../../../schemas/integrations/genai/common.yaml#/GeminiError'
|
|
'500':
|
|
description: Internal server error
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '../../../schemas/integrations/genai/common.yaml#/GeminiError'
|
|
|
|
security:
|
|
- BearerAuth: []
|
|
- BasicAuth: []
|
|
- VirtualKeyAuth: []
|
|
- ApiKeyAuth: []
|
|
generate-content:
|
|
post:
|
|
operationId: pydanticaiGeminiGenerateContent
|
|
summary: Generate content (PydanticAI - Gemini format)
|
|
description: |
|
|
Generates content using Google Gemini-compatible format via PydanticAI.
|
|
tags:
|
|
- PydanticAI Integration
|
|
parameters:
|
|
- name: model
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
description: Model name with action
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '../../../schemas/integrations/genai/generation.yaml#/GeminiGenerationRequest'
|
|
responses:
|
|
'200':
|
|
description: Successful response
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '../../../schemas/integrations/genai/generation.yaml#/GeminiGenerationResponse'
|
|
'400':
|
|
description: Bad request
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '../../../schemas/integrations/genai/common.yaml#/GeminiError'
|
|
'500':
|
|
description: Internal server error
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '../../../schemas/integrations/genai/common.yaml#/GeminiError'
|
|
|
|
security:
|
|
- BearerAuth: []
|
|
- BasicAuth: []
|
|
- VirtualKeyAuth: []
|
|
- ApiKeyAuth: []
|
|
stream-generate-content:
|
|
post:
|
|
operationId: pydanticaiGeminiStreamGenerateContent
|
|
summary: Stream generate content (PydanticAI - Gemini format)
|
|
description: |
|
|
Streams content generation using Google Gemini-compatible format via PydanticAI.
|
|
tags:
|
|
- PydanticAI Integration
|
|
parameters:
|
|
- name: model
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
description: Model name with action
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '../../../schemas/integrations/genai/generation.yaml#/GeminiGenerationRequest'
|
|
responses:
|
|
'200':
|
|
description: Successful streaming response
|
|
content:
|
|
text/event-stream:
|
|
schema:
|
|
$ref: '../../../schemas/integrations/genai/generation.yaml#/GeminiGenerationResponse'
|
|
'400':
|
|
description: Bad request
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '../../../schemas/integrations/genai/common.yaml#/GeminiError'
|
|
'500':
|
|
description: Internal server error
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: '../../../schemas/integrations/genai/common.yaml#/GeminiError'
|
|
security:
|
|
- BearerAuth: []
|
|
- BasicAuth: []
|
|
- VirtualKeyAuth: []
|
|
- ApiKeyAuth: []
|