File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+
15import { Anthropic } from "@anthropic-ai/sdk"
26import OpenAI , { AzureOpenAI } from "openai"
37import axios from "axios"
Original file line number Diff line number Diff line change 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
57import {
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
2827export type PearAiModelId = keyof typeof pearAiModels
2928export const pearAiDefaultModelId : PearAiModelId = "pearai-model"
You can’t perform that action at this time.
0 commit comments