Modal 客户端 1.0 发布
- 核心提炼:Modal 上周发布客户端 1.0(Python SDK),API 更稳健、破坏性变更更少。1.0 移除 automounting 等“魔法”行为,本地文件与包改为显式指定,并新增 @modal.concurrent 装饰器拆分并发配置。后续更新将批量发布,团队正开发其他语言 SDK、探索面向 AI 智能体的体验。
- 频道与评分:ai-products · 质量评分 48 分 · 来源 Modal 官方工程博客
情报档案
本帖由 AOB 情报系统同步至 BBS 讨论区,欢迎在下方展开技术拆解、实测反馈与延伸讨论。
Original Full Content
Full Text4,937 charsLast week, we launched version 1.0 of the Modal client . This is a significant milestone for us because it marks a new level of maturity and stability for the Modal platform. We’ve worked to make the client API more robust and predictable, and we expect far fewer breaking changes moving forward. So what do we mean by “Modal client”? If you’re new to Modal, you can think of Modal in two parts: our client, which is a Python SDK, and our managed cloud platform, which we use to run user workloads around the world. The client gives developers the ability to access serverless cloud compute from their application code via decorators. Here’s a basic example: Developer ergonomics has been a core principle of Modal from the very beginning. Crafting a good developer experience requires making tricky tradeoffs along the way, however. Working towards 1.0 has given us a chance to reflect on our core design principles and some of the major decisions we’ve made along the way. Design principles for 1.0 1. Avoiding unpredictable magic We want using Modal to feel a little magical, but “magic” behavior can be a double-edged sword. With 1.0, we’ve intentionally moved away from some of these “magic” behaviors. One example is our old “automounting” feature. If your App had imports of local packages, we’d automatically find and include them in your Modal deployment. While helpful on the surface, this became unpredictable in many cases. Users could end up with more packages than needed, making deployments slower. Users could also start expecting every file they read to be automatically included, even when that wasn’t the case. With 1.0, these behaviors are now explicit. You’ll specify exactly what local files and packages are included in your container, apart from the Function’s own package. Yo…