File size: 630 Bytes
5dba34e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import os
import openai

openai.api_key = os.getenv("OPENAI_API_KEY")

def generate_schizoanalysis_response(prompt, model="text-davinci-002"):
    full_prompt = f"Generate a response in the manner of schizoanalysis: {prompt}"
    response = openai.Completion.create(
        engine=model,
        prompt=full_prompt,
        max_tokens=150,
        n=1,
        stop=None,
        temperature=0.7,
    )
    return response.choices[0].text.strip()

# Replace this with your actual question
your_question = "What is the nature of reality?"

response = generate_schizoanalysis_response(your_question)
print(f"Response: {response}")