KEVIN JOHN KULL
commited on
Commit
•
5dba34e
1
Parent(s):
7532fa4
Upload gistfile1.txt
Browse files- gistfile1.txt +22 -0
gistfile1.txt
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
import openai
|
3 |
+
|
4 |
+
openai.api_key = os.getenv("OPENAI_API_KEY")
|
5 |
+
|
6 |
+
def generate_schizoanalysis_response(prompt, model="text-davinci-002"):
|
7 |
+
full_prompt = f"Generate a response in the manner of schizoanalysis: {prompt}"
|
8 |
+
response = openai.Completion.create(
|
9 |
+
engine=model,
|
10 |
+
prompt=full_prompt,
|
11 |
+
max_tokens=150,
|
12 |
+
n=1,
|
13 |
+
stop=None,
|
14 |
+
temperature=0.7,
|
15 |
+
)
|
16 |
+
return response.choices[0].text.strip()
|
17 |
+
|
18 |
+
# Replace this with your actual question
|
19 |
+
your_question = "What is the nature of reality?"
|
20 |
+
|
21 |
+
response = generate_schizoanalysis_response(your_question)
|
22 |
+
print(f"Response: {response}")
|