-
Notifications
You must be signed in to change notification settings - Fork 260
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
Different label naming conventions for KV stores vs AI models #2278
Comments
Huh. I thought at one point all were required to be hyphenated because they could in future be thought of as individual imports, though I am not sure we worry about that any more. @lann any idea why these are required to be snaked? |
Yeah, Fermyon cloud currently requires them to be hyphenated, so i was surprised by Spin having a different requirement |
I don't remember exactly how we ended up in this situation but it would be good if labels could be represented as kebab-case, either by requiring them to be kebab-case themselves or having a simple rule to convert them. |
To prevent a breaking change, we probably cannot change |
What is the outcome here (for the 2.x timeframe) - allow kebab or snake case? I don't quite get the discussion around converting. Is the idea that internally they'd be represented as kebab-ids? And we would also convert snakeful references (e.g. |
I guess my perspective is that I don't want to make major breaking changes to the manifest format but it would be good to have a plan for how to map labels to kebab-case names in the future, which could involve making minor changes to the label validation rules (in particular, kebab-case "words" between |
For now, could we change the manifest to allow kebab or snake case and then when we are ready to break, we remove snake? Fermyon cloud can continue to only support kebab |
WFM but I don't currently have a good mental model of how all these things currently work so I'll defer to others. |
In the Spin manifest, i cannot label a KV store with kebabcase.
key_value_stores = [ "has-hyphen"]
will cause the following error:However, labels for llm models must be hyphenated and the following fails
ai_models = ["llama2_chat"]
.We have clearly defined this limitation in the
Component
type, so the TOML parser correctly throws the error:My main question is why we specify snake case for some and kebab for others. Could we permit both?
The text was updated successfully, but these errors were encountered: