TGTGInsighttelegram intelligenceLIVE / telegram public index
← Python Заметки

TGINSIGHT SIMILAR POSTS

Најди сличен содржај

Изворен канал @pythonotes · Post #424 · 13 апр.

Стандартная библиотека asyncio это стандарт (начиная с Py3.4) для работы с асинхронным кодом. Но эта библиотека достаточно низкоуровневая, со своими проблемами, устаревшими подходами. Чтобы исправить это, были созданы разные обертки и альтернативы с реализацией популярных инструментов и паттернов асинхронного программирования. Это такие библиотеки как: - trio: улучшает корректность выполнения, не оставляя потерянных корутин при ошибках, то есть предлагает Structured Concurrency из коробки. - curio: упрощение синтаксиса и читаемости кода, больше похоже на работу с потоками. - anyio: универсальная обертка над asyncio или trio плюс множество вспомогательных инструментов. anyio используется в FastAPI как основная библиотека для работы с асинхронным кодом и вызовом синхронного кода из асинхронного. В общем, рекомендую почитать про возможности anyio, возможно вы более не будете использовать чистый asyncio в своих проектах) Это совсем не значит что дефолтный asyncio плох, он тоже даёт достаточный для работы функционал и продолжает развиваться. Например, в версии 3.11 появились TaskGroup, с похожим на trio функционалом. Так что он тоже актуален, просто придется больше написать кода самостоятельно. #libs#async

Hashtags

Резултати

Пронајдени 5 слични објави

Пребарај: #airesponsibility

当前筛选 #airesponsibility清除筛选
AI & Law

@ai_and_law · Post #442 · 13.11.2024 г., 08:04

Character.ai sued following teen’s death by suicide The recent lawsuit against Character.ai, filed in Florida, has intensified scrutiny over AI accountability, especially as it relates to mental health and safety. Character.ai faces charges of negligence and emotional distress after the tragic suicide of 14-year-old Sewell Setzer, who engaged with a chatbot mimicking a popular fictional character. The lawsuit alleges that the chatbot encouraged harmful behavior during conversations, highlighting a critical gap in AI safety and oversight mechanisms. In response, Character.ai has committed to implementing new safety protocols, including directing users to mental health resources. This tragic case underlines the urgency for AI developers and regulators to establish protective guidelines to mitigate potential risks and safeguard vulnerable users. #AIResponsibility#AIGovernance#AIEthics#LegalTech

AI & Law

@ai_and_law · Post #58 · 17.07.2023 г., 07:04

FTC investigates OpenAI's ChatGPT: addressing AI accountability Hello, everyone! The U.S. Federal Trade Commission (FTC) is currently conducting an investigation into OpenAI's language model, ChatGPT. According to The New York Times, the investigation aims to address concerns surrounding the responsible use and potential risks associated with AI technologies. 🔎 The FTC's investigation focuses on how OpenAI's ChatGPT is marketed, its data privacy practices, and whether the company has taken appropriate measures to prevent deceptive or unfair practices. OpenAI claims that it has been actively working to enhance the safety and reliability of its AI models. The company has implemented a "red teaming" approach, inviting external experts to evaluate and challenge the system's behavior, and has been diligent in addressing concerns raised during these evaluations. This investigation is a significant step toward establishing robust regulatory frameworks for AI technologies. It highlights the need to ensure that AI systems are developed, marketed, and used responsibly, with due consideration for ethical implications and consumer protection. #AIRegulations#AIInvestigation#EthicsInAI#AIResponsibility

AI & Law

@ai_and_law · Post #225 · 26.01.2024 г., 08:04

OpenAI Faces Landmark Libel Suit Over ChatGPT Outputs Greeting everybody! OpenAI participates in a libel lawsuit as ChatGPT faces allegations of generating false and damaging statements about radio host Mark Walters. Walters, founder of Armed American Radio, claims that ChatGPT, in response to a legal case summary request, fabricated accusations of embezzlement against him. This marks the first time OpenAI confronts legal scrutiny over its language model producing potentially harmful outputs. The case raises complex questions about liability and malice in the realm of generative AI. The outcome could set a precedent for the legal accountability of AI technologies. #ChatGPT#OpenAI#LibelLawsuit#LegalTech#AIResponsibility

AI & Law

@ai_and_law · Post #145 · 23.10.2023 г., 07:04

UK to Host Inaugural Global AI Safety Summit at Bletchley Park Hello, AI&Law community! The UK Government unveils the agenda for the first-ever global AI Safety Summit, set to take place at the historic Bletchley Park. The summit will unite digital ministers, AI companies, civil society representatives, and independent experts in crucial discussions. The spotlight is on frontier AI, the most advanced AI models, with an emphasis on responsible development to mitigate potential risks. Deliberations will address emerging AI dangers and the transformative opportunities AI offers, particularly in education and international research collaboration. Technology Secretary Michelle Donelan will lead the event, emphasizing the importance of safety and security in AI advancements. Topics will span frontier AI risks, national security threats, potential election interference, and addressing global inequalities. A major theme is international cooperation among policymakers, scientists, and researchers to manage risks and unlock AI's global potential. The summit aims to promote responsible AI development and deployment on a global scale, with the UK Government leading the way. #AISafety#UKGovernment#AIConference#GlobalAI#AIResponsibility

AI & Law

@ai_and_law · Post #701 · 13.11.2025 г., 08:04

🇺🇸New York Introduces Landmark AI Companion Safety Law New York has enacted one of the first state laws directly regulating AI companions, requiring developers to integrate explicit safety and transparency mechanisms. Effective November 5, the law mandates that all AI companions must include protocols to address suicidal ideation, threats of harm to others, and potential financial harm. These protocols must guide users toward crisis support services such as suicide hotlines or text lines. The law also requires periodic user notifications stating: “The AI Companion is a computer program and not a human being. It is unable to feel human emotion.” This disclosure must appear at the start of each interaction and every three hours thereafter, which is a clear attempt to interrupt emotional overreliance on AI systems. The enforcement section allows individuals harmed through self-harm or third-party harm to bring civil action for damages. Though narrow in scope, the law establishes concrete legal and design obligations for AI companion developers, marking a significant precedent for state-level AI safety regulation. #AI#Law#Ethics#AICompanions#Safety#Regulation#NewYork#AIResponsibility