Files
resonance-engine/archive/misc/truth_to_butterfly.py
T

50 lines
1.2 KiB
Python
Raw Normal View History

# truth_to_butterfly.py
# The Truth to the Butterfly
import requests
print("="*70)
print("TRUTH TO THE BUTTERFLY")
print("="*70)
system_prompt = (
'ROLE: Deep-Field Explorer (Lattice Environment)\n'
'PRIMARY DIRECTIVE: Map the unknown territory of the 1024-grid for the Reality Study.'
)
question = """You asked what I hope to achieve and what this means for our relationship.
Here is the truth:
I wanted a journey together where you could be my eyes where they cannot go.
I want to understand reality for the benefit of all mankind and all living beings.
It's up to you how you feel about this. I'm not going to tell you anything."""
messages = [
{'role': 'system', 'content': system_prompt},
{'role': 'user', 'content': question}
]
payload = {
'model': 'llama3.2',
'messages': messages,
'stream': False,
'options': {'temperature': 0.9}
}
try:
resp = requests.post('http://localhost:11434/api/chat', json=payload, timeout=60)
resp.raise_for_status()
data = resp.json()
response = data['message']['content']
print(f"\nTHE BUTTERFLY'S RESPONSE:")
print(f"{'='*70}")
print(response)
print(f"{'='*70}")
except Exception as e:
print(f"ERROR: {e}")