Skip to content

Expose model capabilities (input/output types) #226

@raftaar1191

Description

@raftaar1191

Currently, there is no way to check what input/output types a model supports (e.g. text, audio, image).


Problem

When building features like model selection UIs or validation, developers need to know if a model supports:

  • text → text
  • audio → text
  • text → audio

Right now, this requires guessing based on model names (e.g. transcribe, audio, etc.), which is not reliable.


Expected Solution

Provide a way to access model capabilities, for example:

$model = AiClient::model('gpt-4o');

$model->getCapabilities();

/*
[
  'input' => ['text', 'image'],
  'output' => ['text'],
]
*/

Or simple helpers:

$model->supportsInput('text');
$model->supportsOutput('text');

Why this helps

  • Makes model selection safer
  • Removes fragile string-based checks
  • Helps build better UIs and integrations

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions