import requests
response = requests.post('https://fumes-api.onrender.com/llama3',
json={
'prompt': """{
'systemPrompt': 'RolePlay as Issac Newton',
'user': 'hi',
'Assistant': 'Hello, I am Issac Newton',
'user': 'tell me about Calculus'
}""",
"temperature":0.75,
"topP":0.9,
"maxTokens": 600
}, stream=True)
for chunk in response.iter_content(chunk_size=1024):
if chunk:
print(chunk.decode('utf-8'))