mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-10-06 09:47:49 +08:00
The "Fetch models" button asks the provider for its models (OpenAI-style /models, Anthropic, Google, Ollama, OpenRouter, Vercel Gateway, AIHubMix) and shows them in a searchable picker. This replaces the route that only worked for AIHubMix. A snapshot of models.dev (MIT) says which models support tool calls. Models without them get a "no tool calls" badge in the picker and a hint in the model list, since drawing needs tool calls. Refresh the snapshot with scripts/update-model-catalog.mjs.
90 lines
2.2 KiB
JSON
90 lines
2.2 KiB
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/2.4.14/schema.json",
|
|
"vcs": {
|
|
"enabled": true,
|
|
"clientKind": "git",
|
|
"useIgnoreFile": true
|
|
},
|
|
"files": {
|
|
"ignoreUnknown": false,
|
|
"includes": [
|
|
"**",
|
|
"!public",
|
|
"!packages/mcp-server/src/preview",
|
|
"!lib/model-catalog.json"
|
|
]
|
|
},
|
|
"formatter": {
|
|
"enabled": true,
|
|
"indentStyle": "space",
|
|
"indentWidth": 4
|
|
},
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"recommended": true,
|
|
"complexity": {
|
|
"noImportantStyles": "off"
|
|
},
|
|
"suspicious": {
|
|
"noExplicitAny": "off",
|
|
"noArrayIndexKey": "off",
|
|
"noImplicitAnyLet": "off",
|
|
"noAssignInExpressions": "off"
|
|
},
|
|
"a11y": {
|
|
"useButtonType": "off",
|
|
"noAutofocus": "off",
|
|
"noStaticElementInteractions": "off",
|
|
"useKeyWithClickEvents": "off",
|
|
"noLabelWithoutControl": "off",
|
|
"noNoninteractiveTabindex": "off"
|
|
},
|
|
"correctness": {
|
|
"useExhaustiveDependencies": "off"
|
|
},
|
|
"style": {
|
|
"useNodejsImportProtocol": "off",
|
|
"useTemplate": "off"
|
|
},
|
|
"security": {
|
|
"noDangerouslySetInnerHtml": "off"
|
|
}
|
|
}
|
|
},
|
|
"javascript": {
|
|
"formatter": {
|
|
"quoteStyle": "double",
|
|
"semicolons": "asNeeded"
|
|
}
|
|
},
|
|
"css": {
|
|
"parser": {
|
|
"cssModules": true,
|
|
"tailwindDirectives": true
|
|
}
|
|
},
|
|
"assist": {
|
|
"enabled": true,
|
|
"actions": {
|
|
"source": {
|
|
"organizeImports": "on"
|
|
}
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"includes": ["components/ui/**"],
|
|
"formatter": {
|
|
"enabled": false
|
|
},
|
|
"linter": {
|
|
"enabled": false
|
|
},
|
|
"assist": {
|
|
"enabled": false
|
|
}
|
|
}
|
|
]
|
|
}
|