Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Support BYOT for completions API call #207

@karolisg

Description

@karolisg

Add support for BYOT (Bring Your Own Type) in the /v1/chat/completions endpoint, allowing clients to pass custom type definitions and schemas in requests.

The completions API currently uses predefined types (ChatCompletionRequest, ChatCompletionRequestWithTools) with fixed schemas for tools, functions, and response formats. Some use cases require custom type definitions that aren't covered by the standard types.

Users cannot:

  • Define custom tool/function schemas beyond the standard JSON Schema format
  • Pass custom type definitions for structured outputs
  • Extend the request/response types with domain-specific schemas
  • Use custom validation rules or type constraints
  • This limits flexibility for advanced use cases that need domain-specific type systems or custom validation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions