@setoelkahfi / sigit / commits / f982b16

Use a generic endpoint in provider examples and tests

The base_url doc example and the providers.toml parse test used a specific hosted endpoint; switch them to a neutral example so the public client carries no infra-specific reference. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>

Seto Elkahfi committed Jun 23, 2026 at 02:26 UTC f982b16964b6c4206ba7aac9d5680b016a9de583
1 file changed +7 -7
src/provider.rs
+7 -7
@@ -71,7 +71,7 @@ fn tier_to_model(tier: &str) -> String {
71 pub struct ProviderConfig {
72 /// Human-facing name shown in the UI (e.g. `siGit Code Cloud · Balanced`).
73 pub display_name: String,
74 - /// API root, e.g. `https://cloud.ondeinference.com/v1`.
74 + /// API root, e.g. `https://api.openai.com/v1`.
75 pub base_url: String,
76 pub api_key: String,
77 /// Model id sent to the endpoint, e.g. `onde-balanced` or `gpt-4o-mini`.
@@ -205,13 +205,13 @@ mod tests {
205 #[test]
206 fn parses_active_profile_from_toml() {
207 let toml = r#"
208 - active = "onde-cloud"
208 + active = "primary"
209
210 [[provider]]
211 - name = "onde-cloud"
212 - base_url = "https://cloud.ondeinference.com/v1"
211 + name = "primary"
212 + base_url = "https://api.example.com/v1"
213 api_key = "sk-test"
214 - model = "onde-large"
214 + model = "model-a"
215
216 [[provider]]
217 name = "openai"
@@ -226,8 +226,8 @@ mod tests {
226 .into_iter()
227 .find(|entry| entry.name == active)
228 .unwrap();
229 - assert_eq!(entry.base_url, "https://cloud.ondeinference.com/v1");
230 - assert_eq!(entry.model, "onde-large");
229 + assert_eq!(entry.base_url, "https://api.example.com/v1");
230 + assert_eq!(entry.model, "model-a");
231 }
232
233 #[test]