Skip to content

[AI Bundle] Prompt for provider, model if missing in ai:platform:invoke #1924

@tacman

Description

@tacman

bin/console ai:platform:invoke

fails because it needs the provider. Since those are configured, what about prompting from the list with a ChoiceQuestion?

If the model is missing, we could prompt with a regular ask, or use the the package someone just released (blanking now where it is) that lists all the models by provider.

Then of course we can ask for the prompt.

More brainstorming: add a --prompt-file option that's the name of a file. Then I could test different providers/models with the identical prompt.

I can make a PR if you think any of these are worthwhile.

Metadata

Metadata

Assignees

No one assigned

    Labels

    AI BundleIssues & PRs about the AI integration bundleRFCRFC = Request For Comments (proposals about features that you want to be discussed)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions