From e00b63ef03da537b3e716c4c7c20e418be3908ba Mon Sep 17 00:00:00 2001 From: Saoud Rizwan <7799382+saoudrizwan@users.noreply.github.com> Date: Mon, 12 Aug 2024 23:35:38 -0400 Subject: [PATCH] Use OpenRouter's self-moderated claude models --- src/shared/api.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/shared/api.ts b/src/shared/api.ts index f03a0c4..068f874 100644 --- a/src/shared/api.ts +++ b/src/shared/api.ts @@ -89,27 +89,27 @@ export const bedrockModels = { // OpenRouter // https://openrouter.ai/models?order=newest&supported_parameters=tools export type OpenRouterModelId = keyof typeof openRouterModels -export const openRouterDefaultModelId: OpenRouterModelId = "anthropic/claude-3.5-sonnet" +export const openRouterDefaultModelId: OpenRouterModelId = "anthropic/claude-3.5-sonnet:beta" export const openRouterModels = { - "anthropic/claude-3.5-sonnet": { + "anthropic/claude-3.5-sonnet:beta": { maxTokens: 8192, supportsImages: true, inputPrice: 3.0, outputPrice: 15.0, }, - "anthropic/claude-3-opus": { + "anthropic/claude-3-opus:beta": { maxTokens: 4096, supportsImages: true, inputPrice: 15, outputPrice: 75, }, - "anthropic/claude-3-sonnet": { + "anthropic/claude-3-sonnet:beta": { maxTokens: 4096, supportsImages: true, inputPrice: 3, outputPrice: 15, }, - "anthropic/claude-3-haiku": { + "anthropic/claude-3-haiku:beta": { maxTokens: 4096, supportsImages: true, inputPrice: 0.25,