Skip to content

Commit 0344700

Browse files
committed
Added claude 3.7
1 parent 1b86f50 commit 0344700

2 files changed

Lines changed: 7 additions & 15 deletions

File tree

src/api/providers/anthropic.ts

Lines changed: 5 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -105,19 +105,11 @@ export class AnthropicHandler implements ApiHandler, SingleCompletionHandler {
105105
// prompt caching: https://x.com/alexalbert__/status/1823751995901272068
106106
// https://github.com/anthropics/anthropic-sdk-typescript?tab=readme-ov-file#default-headers
107107
// https://github.com/anthropics/anthropic-sdk-typescript/commit/c920b77fc67bd839bfeb6716ceab9d7c9bbe7393
108-
switch (modelId) {
109-
case "claude-3-5-sonnet-20241022":
110-
case "claude-3-5-haiku-20241022":
111-
case "claude-3-opus-20240229":
112-
case "claude-3-haiku-20240307":
113-
return {
114-
headers: {
115-
"anthropic-beta": "prompt-caching-2024-07-31",
116-
authorization: `Bearer ${this.options.apiKey}`,
117-
},
118-
}
119-
default:
120-
return undefined
108+
return {
109+
headers: {
110+
"anthropic-beta": "prompt-caching-2024-07-31",
111+
authorization: `Bearer ${this.options.apiKey}`,
112+
},
121113
}
122114
})(),
123115
)

src/shared/api.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -792,9 +792,9 @@ export const unboundDefaultModelInfo: ModelInfo = {
792792
}
793793
// CHANGE AS NEEDED FOR TESTING
794794
// PROD:
795-
export const PEARAI_URL = "https://stingray-app-gb2an.ondigitalocean.app/pearai-server-api2/integrations/cline"
795+
// export const PEARAI_URL = "https://stingray-app-gb2an.ondigitalocean.app/pearai-server-api2/integrations/cline"
796796
// DEV:
797-
// export const PEARAI_URL = "http://localhost:8000/integrations/cline"
797+
export const PEARAI_URL = "http://localhost:8000/integrations/cline"
798798

799799
// PearAI
800800
export type PearAiModelId = keyof typeof pearAiModels

0 commit comments

Comments
 (0)