Product placement
fitz (acts: used to open and read text from a PDF file, removing it would change what happens in the video)nOpenAI (acts: used to create a client instance and call the chat completions API to summarize text, removing it would change what happens in the video)nGPT-5.4-mini (acts: the specific AI model used for summarization, removing it would change what happens in the video)nAnthropic's Advanced AI Framework (appears: the title of the PDF document being processed, removing it would not change what happens in the video as the content is extracted and summarized programmatically)
On-screen text
02-sum-pdf.pynplaygroundnAdv-AI-Framework_060926_a.pdfnPROBLEMSnTERMINALnPythonnCodeWithAlexn>nimpnimportnimportErrornImportWarningnimportnNotImplementedErrornimportnNotImplementedn02-sum-pdf.pyn02-sum-pdf.pyn1n2nimportnfitzn3ndoc = fitz.open("Adv-AI-Framework_060926_a.pdf")ntext =nfor page in doc:ntext += page.get_text()ndoc.close()nfrom openai import OpenAInclient = OpenAI(api_key="sk-proj-eBxdB0Pn1baBS3zUh1NIhE2P3nT20V0bnu_M8jSSKbl6n1lQ606nresponse = client.chat.completions.create(nmodel = "gpt-5.4-mini",nmessages=[n {"role": "user",n "content": f"Summarize this:\n{text}"}n])nprint(response.choices[0].message.content)nHere's a concise summary of Anthropic's **Advanced AI Framework** (June 2026):n### Core ideanThe framework proposes near-term government action to reduce the most serious risks from frontier AI while still allowing in novation.n### Part 1: Rules for frontier developer obligationsnApplies to very large AI developers/model builders that cross capability and scale thresholds.n**Main obligations**n- **Test** the most capable models for catastrophic risks.n- **Use** external/independent evaluators in addition to self-assessment.n- **Publish** safety and risk information regularly.n- **Report** serious incidents to government.n- **Be** accountable to a government agency.n**Transparency requirements**n- **Publish** a safety framework.n- **Release** risk reports at least every 6 months.n- **Publish** system cards for major new covered models/capabili ties.n- **Report** critical safety incidents within 15 days.n- **Redact** only when necessary for trade secrets, safety, or national security.n**Independent evaluation**n- **Maintain** strong security for model weights, training infra structure, and internal access.n- **Defend** against external and insider threats.n- **Monitor** for model theft/distillation attacks.n- **Do** regular red teaming and risk information regularly.n**Enforcement**n- False or misleading safety claims should be penalized.n- Civil penalties should apply for missing required evaluati ons, disclosures, or incident reports.n- Whistleblowers should be protected.n- Governments should have authority to block or restrict uns afe deployments in serious cases.n**Biosecurity resilience priorities**n- Update biosafety and biosecurity standards.n- Strengthen oversight of private research.n- Screen gene synthesis requests.npip install pymupdfnpip install openainPython 3.13.12n154 %