import os
import requests
payload = {
"input_prompt": "What does it mean that the absurd only has meaning in so far that it is not agreed to?",
"messages": [
{"role": "user", "content": "Hi"},
{
"role": "assistant",
"content": "Welcome to Absurdist Bot. I'm an AI 🤖 designed to help you better understand Absurdism. Send me a text or 🎙️voice note with any Absurdism related question and I'll try to give a great answer. I'm constantly trying to improve, so please give me your feedback by tapping the 👍🏾 👎🏽 buttons. Now, what would you like to know?",
},
{
"role": "user",
"content": "What is the essence of Absurdism? Where does the absurdity stem from?",
},
{
"role": "assistant",
"content": "The essence of Absurdism, as described by Albert Camus, is the conflict between the human desire for meaning, order, and purpose in life and the indifferent, chaotic nature of the universe. Absurdity stems from this confrontation between our longing for significance and the universe's unreasonable silence. It is born out of the realization that our quest for understanding may ultimately be futile in a world that lacks inherent meaning or reason. This confrontation and the persistent struggle it entails are fundamental to the absurd, which must be acknowledged and not escaped from to preserve its truth.\n\nCamus also emphasizes that the absurd has meaning only as long as it is not agreed to; it requires a constant rejection and a conscious dissatisfaction without hope, which is different from despair. The absurd man recognizes this condition and lives with it, refusing to seek false solutions or to escape into illusions. \n\nIn summary, Absurdism is about recognizing the inherent conflict between human expectations and the cold reality of the universe, and choosing to live with this tension without resorting to false hopes or despair.",
},
],
}
response = requests.post(
"https://api.gooey.ai/v2/video-bots?example_id=mkg8nbay",
headers={
"Authorization": "bearer " + os.environ["GOOEY_API_KEY"],
},
json=payload,
)
assert response.ok, response.content
result = response.json()
print(response.status_code, result)