fix: add missing gemini-3-flash to writing category migration (#1061)
MODEL_TO_CATEGORY_MAP was missing the mapping for google/gemini-3-flash to the 'writing' category. Users who had configured agents with model: 'google/gemini-3-flash' would not get auto-migrated to category: 'writing'. Ref: PR #1057 review comment Co-authored-by: justsisyphus <justsisyphus@users.noreply.github.com>
This commit is contained in:
parent
0e1d4e52e1
commit
6e9ebaf3ee
@ -468,13 +468,14 @@ describe("migrateAgentConfigToCategory", () => {
|
|||||||
// #given: Configs for each mapped model
|
// #given: Configs for each mapped model
|
||||||
const configs = [
|
const configs = [
|
||||||
{ model: "google/gemini-3-pro" },
|
{ model: "google/gemini-3-pro" },
|
||||||
|
{ model: "google/gemini-3-flash" },
|
||||||
{ model: "openai/gpt-5.2" },
|
{ model: "openai/gpt-5.2" },
|
||||||
{ model: "anthropic/claude-haiku-4-5" },
|
{ model: "anthropic/claude-haiku-4-5" },
|
||||||
{ model: "anthropic/claude-opus-4-5" },
|
{ model: "anthropic/claude-opus-4-5" },
|
||||||
{ model: "anthropic/claude-sonnet-4-5" },
|
{ model: "anthropic/claude-sonnet-4-5" },
|
||||||
]
|
]
|
||||||
|
|
||||||
const expectedCategories = ["visual-engineering", "ultrabrain", "quick", "unspecified-high", "unspecified-low"]
|
const expectedCategories = ["visual-engineering", "writing", "ultrabrain", "quick", "unspecified-high", "unspecified-low"]
|
||||||
|
|
||||||
// #when: Migrate each config
|
// #when: Migrate each config
|
||||||
const results = configs.map(migrateAgentConfigToCategory)
|
const results = configs.map(migrateAgentConfigToCategory)
|
||||||
|
|||||||
@ -83,6 +83,7 @@ export const HOOK_NAME_MAP: Record<string, string | null> = {
|
|||||||
*/
|
*/
|
||||||
export const MODEL_TO_CATEGORY_MAP: Record<string, string> = {
|
export const MODEL_TO_CATEGORY_MAP: Record<string, string> = {
|
||||||
"google/gemini-3-pro": "visual-engineering",
|
"google/gemini-3-pro": "visual-engineering",
|
||||||
|
"google/gemini-3-flash": "writing",
|
||||||
"openai/gpt-5.2": "ultrabrain",
|
"openai/gpt-5.2": "ultrabrain",
|
||||||
"anthropic/claude-haiku-4-5": "quick",
|
"anthropic/claude-haiku-4-5": "quick",
|
||||||
"anthropic/claude-opus-4-5": "unspecified-high",
|
"anthropic/claude-opus-4-5": "unspecified-high",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user