Skip to content

Commit 0329e35

Browse files
committed
PR feedback
1 parent 74fe2ae commit 0329e35

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

webview-ui/src/components/ui/hooks/useSelectedModel.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import {
2-
ApiConfiguration,
3-
RouterModels,
4-
ModelInfo,
2+
type ProviderName,
3+
type ApiConfiguration,
4+
type RouterModels,
5+
type ModelInfo,
56
anthropicDefaultModelId,
67
anthropicModels,
78
bedrockDefaultModelId,
@@ -50,7 +51,7 @@ function getSelectedModel({
5051
apiConfiguration,
5152
routerModels,
5253
}: {
53-
provider: string
54+
provider: ProviderName
5455
apiConfiguration: ApiConfiguration
5556
routerModels: RouterModels
5657
}): { id: string; info: ModelInfo } {
@@ -160,6 +161,9 @@ function getSelectedModel({
160161
const info = vscodeLlmModels[modelFamily as keyof typeof vscodeLlmModels]
161162
return { id, info: { ...openAiModelInfoSaneDefaults, ...info, supportsImages: false } } // VSCode LM API currently doesn't support images.
162163
}
164+
// case "anthropic":
165+
// case "human-relay":
166+
// case "fake-ai":
163167
default: {
164168
const id = apiConfiguration.apiModelId ?? anthropicDefaultModelId
165169
const info = anthropicModels[id as keyof typeof anthropicModels]

0 commit comments

Comments
 (0)