fn build_api_body(prompt: String) -> String {
    let body = "\{\"model\":\"meta/llama-3.3-70b-instruct\",\"messages\":[\{\"role\":\"user\",\"content\":\"" + prompt + "\"\}],\"max_tokens\":30\}"
    return body
}

fn main() {
    let api_key = "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"
    let body = build_api_body("Say hi as Silkie in 5 words")
    println("Body: " + body)
    write_file("/tmp/scyla_api_body.json", body)
    let cmd = "curl -s -X POST https://integrate.api.nvidia.com/v1/chat/completions -H 'Content-Type: application/json' -H 'Authorization: Bearer " + api_key + "' -d @/tmp/scyla_api_body.json"
    let resp = shell_exec(cmd)
    println("Response: " + resp)
}
