Skip to content

Commit 3500836

Browse files
committed
Finished
1 parent 0d55bc9 commit 3500836

2 files changed

Lines changed: 8 additions & 5 deletions

File tree

src/api/providers/pearai/pearaiGeneric.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/*
2+
pearaiGeneric.ts is a copy of openai.ts, with minor changes to support the PearAI API. It currently is used for all hosted non-Anthropic models.
3+
*/
4+
15
import { Anthropic } from "@anthropic-ai/sdk"
26
import OpenAI, { AzureOpenAI } from "openai"
37
import axios from "axios"

src/shared/pearaiApi.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
// CHANGE AS NEEDED FOR TESTING
1+
// CHANGE AS NEEDED FOR DEVELOPMENT
22
// PROD:
3-
// export const PEARAI_URL = "https://stingray-app-gb2an.ondigitalocean.app/pearai-server-api2/integrations/cline"
3+
export const PEARAI_URL = "https://stingray-app-gb2an.ondigitalocean.app/pearai-server-api2/integrations/cline"
4+
// DEV:
5+
// export const PEARAI_URL = "http://localhost:8000/integrations/cline"
46

57
import {
68
anthropicModels,
@@ -21,9 +23,6 @@ import {
2123
vertexModels,
2224
} from "./api"
2325

24-
// DEV:
25-
export const PEARAI_URL = "http://localhost:8000/integrations/cline"
26-
2726
// PearAI
2827
export type PearAiModelId = keyof typeof pearAiModels
2928
export const pearAiDefaultModelId: PearAiModelId = "pearai-model"

0 commit comments

Comments
 (0)