Discover and explore top open-source AI tools and projects—updated daily.
jamesrochabrunSwift SDK for Anthropic API integration
Top 99.6% on SourcePulse
SwiftAnthropic is an open-source Swift package designed for seamless integration with Anthropic's public API. It empowers developers on Apple platforms and Linux to leverage advanced AI models like Claude within their applications, offering a streamlined interface for complex natural language processing tasks.
How It Works
This project provides a native Swift implementation of Anthropic's API, accessible via Swift Package Manager. It abstracts common API endpoints, including text completion and the more advanced Messages API, into idiomatic Swift structures and functions. For Linux compatibility, it employs AsyncHTTPClient to circumvent known URLSession issues, ensuring robust server-side operation.
Quick Start & Requirements
aiproxyPartialKey, aiproxyServiceURL, and an environment variable (AIPROXY_DEVICE_CHECK_BYPASS) for simulator development.Highlighted Details
Maintenance & Community
Contributions are welcomed via pull requests targeting the main branch, with an emphasis on unit tests to ensure code quality and stability.
Licensing & Compatibility
Limitations & Caveats
AIProxy support is exclusively available on Apple platforms. Several advanced features, including Prompt Caching, Extended Thinking, and the Skills API, are noted as being in beta. The absence of a specified open-source license presents a significant adoption blocker, requiring clarification before commercial or widespread use.
5 months ago
1 week
LibreChat-AI