Skip to content

Commit d6e55af

Browse files
committed
using ModelPicker for Requesty Model Picker
1 parent 41fcf85 commit d6e55af

File tree

4 files changed

+19
-426
lines changed

4 files changed

+19
-426
lines changed

src/shared/api.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,6 @@ export const bedrockModels = {
343343
// Glama
344344
// https://glama.ai/models
345345
export const glamaDefaultModelId = "anthropic/claude-3-5-sonnet"
346-
export const requestyDefaultModelId = "anthropic/claude-3-5-sonnet"
347346
export const glamaDefaultModelInfo: ModelInfo = {
348347
maxTokens: 8192,
349348
contextWindow: 200_000,
@@ -357,6 +356,7 @@ export const glamaDefaultModelInfo: ModelInfo = {
357356
description:
358357
"The new Claude 3.5 Sonnet delivers better-than-Opus capabilities, faster-than-Sonnet speeds, at the same Sonnet prices. Sonnet is particularly good at:\n\n- Coding: New Sonnet scores ~49% on SWE-Bench Verified, higher than the last best score, and without any fancy prompt scaffolding\n- Data science: Augments human data science expertise; navigates unstructured data while using multiple tools for insights\n- Visual processing: excelling at interpreting charts, graphs, and images, accurately transcribing text to derive insights beyond just the text alone\n- Agentic tasks: exceptional tool use, making it great at agentic tasks (i.e. complex, multi-step problem solving tasks that require engaging with other systems)\n\n#multimodal\n\n_This is a faster endpoint, made available in collaboration with Anthropic, that is self-moderated: response moderation happens on the provider's side instead of OpenRouter's. For requests that pass moderation, it's identical to the [Standard](/anthropic/claude-3.5-sonnet) variant._",
359358
}
359+
360360
export const requestyDefaultModelInfo: ModelInfo = {
361361
maxTokens: 8192,
362362
contextWindow: 200_000,
@@ -370,6 +370,7 @@ export const requestyDefaultModelInfo: ModelInfo = {
370370
description:
371371
"The new Claude 3.5 Sonnet delivers better-than-Opus capabilities, faster-than-Sonnet speeds, at the same Sonnet prices. Sonnet is particularly good at:\n\n- Coding: New Sonnet scores ~49% on SWE-Bench Verified, higher than the last best score, and without any fancy prompt scaffolding\n- Data science: Augments human data science expertise; navigates unstructured data while using multiple tools for insights\n- Visual processing: excelling at interpreting charts, graphs, and images, accurately transcribing text to derive insights beyond just the text alone\n- Agentic tasks: exceptional tool use, making it great at agentic tasks (i.e. complex, multi-step problem solving tasks that require engaging with other systems)\n\n#multimodal\n\n_This is a faster endpoint, made available in collaboration with Anthropic, that is self-moderated: response moderation happens on the provider's side instead of OpenRouter's. For requests that pass moderation, it's identical to the [Standard](/anthropic/claude-3.5-sonnet) variant._",
372372
}
373+
export const requestyDefaultModelId = "anthropic/claude-3-5-sonnet"
373374

374375
// OpenRouter
375376
// https://openrouter.ai/models?order=newest&supported_parameters=tools

webview-ui/src/components/settings/ApiOptions.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ import { GlamaModelPicker } from "./GlamaModelPicker"
4242
import { UnboundModelPicker } from "./UnboundModelPicker"
4343
import { ModelInfoView } from "./ModelInfoView"
4444
import { DROPDOWN_Z_INDEX } from "./styles"
45-
import RequestyModelPicker from "./RequestyModelPicker"
45+
import { RequestyModelPicker } from "./RequestyModelPicker"
4646

4747
interface ApiOptionsProps {
4848
apiErrorMessage?: string

webview-ui/src/components/settings/ModelPicker.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ import { ModelInfoView } from "./ModelInfoView"
2525

2626
interface ModelPickerProps {
2727
defaultModelId: string
28-
modelsKey: "glamaModels" | "openRouterModels" | "unboundModels"
29-
configKey: "glamaModelId" | "openRouterModelId" | "unboundModelId"
30-
infoKey: "glamaModelInfo" | "openRouterModelInfo" | "unboundModelInfo"
31-
refreshMessageType: "refreshGlamaModels" | "refreshOpenRouterModels" | "refreshUnboundModels"
28+
modelsKey: "glamaModels" | "openRouterModels" | "unboundModels" | "requestyModels"
29+
configKey: "glamaModelId" | "openRouterModelId" | "unboundModelId" | "requestyModelId"
30+
infoKey: "glamaModelInfo" | "openRouterModelInfo" | "unboundModelInfo" | "requestyModelInfo"
31+
refreshMessageType: "refreshGlamaModels" | "refreshOpenRouterModels" | "refreshUnboundModels" | "refreshRequestyModels"
3232
serviceName: string
3333
serviceUrl: string
3434
recommendedModel: string

0 commit comments

Comments
 (0)