Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring back AI models as const #2113

Open
demosjarco opened this issue May 10, 2024 · 0 comments
Open

Bring back AI models as const #2113

demosjarco opened this issue May 10, 2024 · 0 comments
Assignees
Labels
types Related to @cloudflare/workers-types

Comments

@demosjarco
Copy link

In commit 7f3789c, modelMappings was removed and replaced by creating union types directly in the argument in the run() overloads. This removes the ability to get the models available at runtime.

Also putting the model names directly inline to each overload makes it difficult to retrieve the models for a task type outside of the run() method vs. externalizing each one individually (or as part of a namespace or other grouping method).

@demosjarco demosjarco added the types Related to @cloudflare/workers-types label May 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
types Related to @cloudflare/workers-types
Projects
Status: Untriaged
Development

No branches or pull requests

2 participants