2 releases

new 0.1.1 Apr 30, 2025
0.1.0 Apr 22, 2025

#1849 in Web programming

Download history 94/week @ 2025-04-21 137/week @ 2025-04-28

231 downloads per month

MIT license

150KB
3.5K SLoC

Seedframe Anthropic

Anthropic AI integration crate for Seedframe, provides struct AnthropicClient which implements the trait Seedframe::completion::CompletionModel

Intended for use with the #[client] macro

Accepts the following configuration parameters, passed as json to the config attribute in the client proc-macro - model: optional String - identifier for the model to use - api_key_var: optional String - Environment variable name containing the API key - api_url: optional String - Custom API endpoint URL

use seedframe_anthropic::AnthropicCompletionModel;

#[client(
    provider = "AnthropicCompletionModel",
    config = r#"{
      "model": "claude-3-7-sonnet-20250219",
      "api_key_var": "ENV_VAR",
      "api_url": "https://api.anthropic.com/v1/messages"
    }"#
)]
struct AnthropicClient;

Dependencies

~11–24MB
~333K SLoC