Skip to content

Commit

Permalink
fix: key
Browse files Browse the repository at this point in the history
  • Loading branch information
liuchuanhe committed Nov 15, 2023
1 parent 1b2774d commit acc3a98
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 0 additions & 2 deletions examples/baseDemo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
import OpenAI from '../src';
import { ChatCompletionStream } from '../src/lib/BaseChatCompletionStream';
const openai = new OpenAI({
apiKey: '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', // defaults to process.env["OPENAI_API_KEY"]
baseURL: 'http://llm-engine-test.cf8025269a251437fa494ea5f9c8a924c.cn-beijing.alicontainer.com',
});

async function main() {
Expand Down
3 changes: 1 addition & 2 deletions examples/demo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import OpenAI from '../src';
import { ChatCompletionStream } from '../src/lib/ChatCompletionStream';

const openai = new OpenAI({
apiKey: '96d6c41139d2efc5c25d7c0b93ad69a3', // defaults to process.env["OPENAI_API_KEY"]
baseURL: 'https://api.baichuan-ai.com/v1',

});
async function main() {
const stream = openai.beta.chat.completions.stream({
Expand Down
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
{

a6da1cdac00797540f7bd3396cf149597335b4d57ac4d4e8e9adff551b216caa59a585d89c10fb517a3355ec1b4e66f5d66066299083f7d361aeb88d505e8c6a15cbda2a55adbe692f18a31584b862202e0542212ba6765b0296342fbd263d1259cee64e0a64a6bd12d850a773b05e87b44a515571992c593372be997e299251fb7db9f414a8443def7900427ec96cafa3e77a75233ac62069798e4b0bc8f4f6



"name": "openailchgpt",
"version": "1.0.0",
"description": "Client library for the OpenAI API",
"author": "",
"author": "lch",
"types": "dist/index.d.ts",
"main": "dist/index.js",
"type": "commonjs",
Expand Down

0 comments on commit acc3a98

Please sign in to comment.