Create DeepSeek Provider (Anthropic API Format)
Source:R/provider_deepseek.R
create_deepseek_anthropic.RdFactory function to create a DeepSeek provider using the Anthropic-compatible API. This allows you to use DeepSeek models with the Anthropic API format.
Details
DeepSeek provides an Anthropic-compatible endpoint at https://api.deepseek.com/anthropic.
This convenience function wraps create_anthropic() with DeepSeek-specific defaults.
Note: When using an unsupported model name, the API backend will automatically
map it to deepseek-chat.
Examples
if (FALSE) { # \dontrun{
# Use DeepSeek via Anthropic API format
deepseek <- create_deepseek_anthropic()
model <- deepseek$language_model("deepseek-chat")
result <- generate_text(model, "Hello!")
# This is useful for tools that expect Anthropic API format
# such as Claude Code integration
} # }