Anthropic (and its model Claude) is a popular model provider that Rig should support.
Proposal
Create a new module rig::providers::anthropic which should roughly contain the following:
// src/providers/anthropic.rs
struct Client {
// TODO
}
struct CompletionRequest {
// Modeled after Anthropic API
// TODO
}
impl From<completion::CompletionRequest> for CompletionRequest {
// TODO
}
struct CompletionResponse {
// Modeled after Anthropic API
// TODO
}
impl From<CompletionResponse> for completion::CompletionResponse<CompletionResponse> {
// TODO
}
struct CompletionModel {
// TODO
}
impl completion::CompletionModel for CompletionModel {
// TODO
}
Feature Request
Add Anthropic as a new model provider for Rig.
Motivation
Anthropic (and its model Claude) is a popular model provider that Rig should support.
Proposal
Create a new module
rig::providers::anthropic
which should roughly contain the following:Note: Use the existing provider integrations as a guide (see
rig::providers::openai
andrig::providers::cohere
).