Show selected org

This commit is contained in:
David Corbitt
2023-08-06 23:23:20 -07:00
parent a53d70d8b2
commit 6b304f8456
23 changed files with 380 additions and 97 deletions

View File

@@ -1,15 +1,15 @@
import * as OpenAI from "openai-beta";
import * as openai from "openai-beta";
import { readEnv } from "openai-beta/core";
// Anything we don't override we want to pass through to openai directly
export * as openai from "openai-beta";
interface ClientOptions extends OpenAI.ClientOptions {
interface ClientOptions extends openai.ClientOptions {
openPipeApiKey?: string;
openPipeBaseUrl?: string;
}
export class OpenPipe extends OpenAI.OpenAI {
export class OpenAI extends openai.OpenAI {
openPipeApiKey: string;
openPipeBaseUrl: string;