Bloodlyghoul commited on
Commit
c042435
·
verified ·
1 Parent(s): 225ec93

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import OpenAI from "openai";
2
+ const openai = new OpenAI();
3
+ const completion = await openai.chat.completions.create({
4
+ model: "gpt-4o",
5
+ store: true,
6
+ messages: [
7
+ {"role": "user", "content": "write a haiku about ai"}
8
+ ]
9
+ });