xethanx / openai-proxy

Home Page:https://closeai.deno.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CProxy

npm:

import { Configuration } from "openai";

const configuration = new Configuration({
  apiKey: OPENAI_API_KEY,
+ basePath: "https://closeai.deno.dev/v1",
});

python:

  import openai

  openai.api_key = os.getenv("OPENAI_API_KEY")
+ openai.api_base = "https://closeai.deno.dev/v1"

by Ethan 2023-04-13

About

https://closeai.deno.dev


Languages

Language:TypeScript 100.0%