mirror of
https://github.com/DayuanJiang/next-ai-draw-io.git
synced 2026-01-03 06:42:27 +08:00
chore: remove unused code
- Remove unused setAccessCodeRequired state in chat-panel.tsx - Remove unused getSelectedModel export in model-config.ts
This commit is contained in:
@@ -275,11 +275,3 @@ export function findModelById(
|
||||
): FlattenedModel | undefined {
|
||||
return flattenModels(config).find((m) => m.id === modelId)
|
||||
}
|
||||
|
||||
// Get selected model
|
||||
export function getSelectedModel(
|
||||
config: MultiModelConfig,
|
||||
): FlattenedModel | undefined {
|
||||
if (!config.selectedModelId) return undefined
|
||||
return findModelById(config, config.selectedModelId)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user