Newer
Older
cortex-hub / patch_broadcast.py
with open("ai-hub/app/core/grpc/services/grpc_server.py", "r") as f:
    content = f.read()

target = "self.assistant.broadcast_file_chunk(fs.session_id, node_id, fs.file_data)"
if target in content:
    print("grpc_server calls broadcast_file_chunk correctly.")
else:
    print("grpc_server missing broadcast call!")