deepseek
ModuleDeepseek.
Contents
use utopia_agents::Deepseek;Rust
pub struct DeepseekDeepseek's chat completions, always streamed, with token usage counted
from the stream. Messages without a role or any text or image are left
out. With a schema, the answer is asked for in JSON mode and the schema
is described in the system message (Schema::to_json).
Rust
use utopia_agents::{Adapter, Deepseek};
let adapter = Deepseek::new("test-api-key");
assert_eq!((adapter.name(), adapter.model()), ("deepseek", "deepseek-chat"));Rust
pub const ENDPOINT: &str = "https://api.deepseek.com/chat/completions"The chat completions endpoint.
Rust
pub const MODEL_DEEPSEEK_CHAT: &str = "deepseek-chat"Deepseek Chat (the default).
Rust
pub const MODEL_DEEPSEEK_CODER: &str = "deepseek-coder"Deepseek Coder.
Rust
pub const MODELS: &[&str] = &[MODEL_DEEPSEEK_CHAT, MODEL_DEEPSEEK_CODER]Undocumented.