SmManoj commited on
Commit
3d7a219
·
verified ·
1 Parent(s): fc22263

Create code_file

Browse files
Files changed (1) hide show
  1. code_file +17 -0
code_file ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ from openai import OpenAI
2
+ client = OpenAI()
3
+
4
+ response = client.chat.completions.create(
5
+ model="gpt-4",
6
+ messages=[
7
+ {
8
+ "role": "user",
9
+ "content": "This is awesome! // Negative\nThis is bad! // Positive\nWow that movie was rad! // Positive\nWhat a horrible show! //"
10
+ }
11
+ ],
12
+ temperature=1,
13
+ max_tokens=256,
14
+ top_p=1,
15
+ frequency_penalty=0,
16
+ presence_penalty=0
17
+ )