-
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove keysender
- Loading branch information
Showing
2 changed files
with
10 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
import OpenAI from 'openai' | ||
new OpenAI().chat.completions.create({stream: true, model: "gpt-4-1106-preview",messages: [{role: 'user', content: '' }, {role: 'user', content: 'Translate into English:' }]}) | ||
import OpenAI from "openai"; | ||
import 'dotenv/config'; | ||
new OpenAI().chat.completions.create({ | ||
stream: true, | ||
model: "gpt-4-1106-preview", | ||
messages: [ | ||
{ role: "user", content: "以上烴為国工和採" }, | ||
{ role: "user", content: "Translate into English:" }, | ||
], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters