* Agent chat: a Mammouth AI preset for OpenAI-compatible endpoints (#5815) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Agent chat: the key test names the Mammouth AI URL too (#5815) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
08d094db39
commit
d1ec8dfd5a
2 files changed
+4
-1
No files matched your search
@@ -257,6 +257,7 @@ pub const OPENAI_PRESETS: &[ApiPreset] = &[
|
||||
ApiPreset { name: "Ollama", base_url: "http://localhost:11434/v1" },
|
||||
ApiPreset { name: "LM Studio", base_url: "http://localhost:1234/v1" },
|
||||
ApiPreset { name: "OpenAI", base_url: "https://api.openai.com/v1" },
|
||||
ApiPreset { name: "Mammouth AI", base_url: "https://api.mammouth.ai/v1" },
|
||||
];
|
||||
|
||||
/// Anthropic-compatible endpoints people use. The base URL is the one their documentation calls
|
||||
@@ -305,6 +306,7 @@ mod tests {
|
||||
#[test]
|
||||
fn keys_go_only_over_https_or_to_this_computer() {
|
||||
assert!(key_safe_for("https://api.openai.com/v1"));
|
||||
assert!(key_safe_for("https://api.mammouth.ai/v1"));
|
||||
assert!(key_safe_for("http://localhost:11434/v1"));
|
||||
assert!(key_safe_for("http://127.0.0.1:1234/v1"));
|
||||
assert!(key_safe_for("http://[::1]:8080/v1"));
|
||||
@@ -346,6 +348,7 @@ mod tests {
|
||||
assert_eq!(Kind::Api.id(), "api");
|
||||
assert_eq!(Kind::Anthropic.id(), "anthropic");
|
||||
assert!(presets(Protocol::OpenAi).iter().all(|p| !p.name.is_empty() && p.base_url.starts_with("http")));
|
||||
assert!(presets(Protocol::OpenAi).iter().any(|p| p.name == "Mammouth AI" && key_safe_for(p.base_url)));
|
||||
assert!(presets(Protocol::Anthropic).iter().any(|p| p.base_url == "https://api.anthropic.com/v1"));
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -199,7 +199,7 @@ Grok Build also supports `XAI_API_KEY` for users who choose API authentication.
|
||||
- **Custom command:** any other program that speaks ACP on stdin and stdout, such as
|
||||
`my-agent --acp`. SolidCraft starts it directly, not through a shell.
|
||||
- **OpenAI-compatible API:** a preset (Ollama `http://localhost:11434/v1`, LM Studio
|
||||
`http://localhost:1234/v1`, OpenAI) or a custom URL, the model name, and an optional key.
|
||||
`http://localhost:1234/v1`, OpenAI, Mammouth AI `https://api.mammouth.ai/v1`) or a custom URL, the model name, and an optional key.
|
||||
- **Anthropic-compatible API:** a preset (Anthropic) or a custom URL, for an endpoint that
|
||||
speaks the Anthropic Messages API (`{base}/v1/messages`). This covers Anthropic itself and
|
||||
providers that offer an Anthropic-compatible endpoint, such as DeepSeek and Qwen.
|
||||
|
||||
Reference in new issue
Block a user