Skip to content

Feature request: model switcher #16

@nicobailon

Description

@nicobailon

When building with the Agents SDK, developers must hardcode model selection in their Agent implementation (e.g., model: openai("gpt-4o-2024-11-20")). There's currently no straightforward way for users to select different models through the frontend UI and have that selection automatically synchronized with the backend.
Would it be possible to update the agents starter template to include a working model switcher component in the frontend? This would ideally demonstrate:

  1. A simple UI dropdown/selector for models
  2. A mechanism for communicating the selected model to the backend in real-time
  3. Backend code that respects and uses the frontend's model selection without requiring restart
  4. Elegantly handle cases for models without tool support

Such an example would significantly improve developer experience of this starter by showing how to implement this common feature without complex custom code to manage the frontend-backend synchronization.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions