Skip to content

Commit d4e5e98

Browse files
fix(providers): add deepinfra telemetry bucket and update profile list test
- Add DeepInfra variant to ProviderProfile telemetry enum and from_raw() mapping so deepinfra providers are tracked in their own bucket rather than falling through to Custom - Map deepinfra in telemetry_provider_profile() in openshell-server - Add deepinfra to list_provider_profiles_returns_built_in_profile_categories test (sorted between cursor and github) - Update architecture/gateway.md inference provider list to include deepinfra Signed-off-by: Milos Milutinovic <codemastermilos@gmail.com>
1 parent ce0ccda commit d4e5e98

3 files changed

Lines changed: 6 additions & 1 deletion

File tree

architecture/gateway.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ Cluster inference routes store only `provider_name`, `model_id`, and optional
265265
timeout. The gateway resolves endpoint URLs, protocols, credentials, auth
266266
style, and route-shaping metadata from the provider record when supervisors call
267267
`GetInferenceBundle`. Supported provider types for cluster inference are
268-
`openai`, `anthropic`, `nvidia`, and `google-vertex-ai`.
268+
`openai`, `anthropic`, `nvidia`, `deepinfra`, and `google-vertex-ai`.
269269

270270
The bundle carries enough information for sandbox-local routers to construct
271271
upstream URLs without re-deriving provider-specific routing logic. Each resolved

crates/openshell-core/src/telemetry.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ pub enum ProviderProfile {
205205
Claude,
206206
Codex,
207207
Copilot,
208+
Deepinfra,
208209
Github,
209210
Gitlab,
210211
Nvidia,
@@ -222,6 +223,7 @@ impl ProviderProfile {
222223
Self::Claude => "claude",
223224
Self::Codex => "codex",
224225
Self::Copilot => "copilot",
226+
Self::Deepinfra => "deepinfra",
225227
Self::Github => "github",
226228
Self::Gitlab => "gitlab",
227229
Self::Nvidia => "nvidia",
@@ -239,6 +241,7 @@ impl ProviderProfile {
239241
"claude" | "claude-code" => Self::Claude,
240242
"codex" => Self::Codex,
241243
"copilot" => Self::Copilot,
244+
"deepinfra" => Self::Deepinfra,
242245
"github" | "gh" => Self::Github,
243246
"gitlab" | "glab" => Self::Gitlab,
244247
"nvidia" => Self::Nvidia,

crates/openshell-server/src/grpc/provider.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2148,6 +2148,7 @@ fn telemetry_provider_profile(provider_type: &str) -> TelemetryProviderProfile {
21482148
Some("claude" | "claude-code") => TelemetryProviderProfile::Claude,
21492149
Some("codex") => TelemetryProviderProfile::Codex,
21502150
Some("copilot") => TelemetryProviderProfile::Copilot,
2151+
Some("deepinfra") => TelemetryProviderProfile::Deepinfra,
21512152
Some("github") => TelemetryProviderProfile::Github,
21522153
Some("gitlab") => TelemetryProviderProfile::Gitlab,
21532154
Some("nvidia") => TelemetryProviderProfile::Nvidia,
@@ -2646,6 +2647,7 @@ mod tests {
26462647
"codex",
26472648
"copilot",
26482649
"cursor",
2650+
"deepinfra",
26492651
"github",
26502652
"google-vertex-ai",
26512653
"nvidia",

0 commit comments

Comments
 (0)