importrequestsimportjsonurl="https://aiservices.novasuite.one/api/v1/modela-9"headers={"Content-Type":"application/json","Authorization":"Bearer nvai_sk_YOUR_API_KEY"}data={"message":"What is machine learning?","context":"You are a technical educator."}response=requests.post(url,json=data,headers=headers,stream=True)forlineinresponse.iter_lines():ifline:line=line.decode('utf-8')ifline.startswith('data: '):json_str=line[6:]event=json.loads(json_str)ifevent.get('type')=='content_block_delta':print(event.get('text',''),end='',flush=True)