Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,16 @@ hawk
.commandcode/
.hawk/
.yaad/
.openclaude/
.grok/
.hermes/
.qoder/

# Cache / local data
.gocache/
.gocache-*/
.gomodcache/
.gomodcache-*/
*.codegraph.db
.DS_Store

Expand Down
2 changes: 1 addition & 1 deletion external/eyrie
Submodule eyrie updated from dce29f to d9dba7
2 changes: 1 addition & 1 deletion internal/config/catalog_api.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ func setupGatewayRegistryID(provider string) string {
}
}

// SetupGatewayCredentialEnv returns the registry env var for a setup gateway (e.g. XIAOMI_MIMO_API_KEY).
// SetupGatewayCredentialEnv returns the registry env var for a setup gateway (e.g. XIAOMI_MIMO_PAYG_API_KEY).
func SetupGatewayCredentialEnv(providerID string) string {
spec, ok := registry.DefaultRegistry.Get(setupGatewayRegistryID(providerID))
if !ok || !spec.RequiresKey {
Expand Down
10 changes: 5 additions & 5 deletions internal/config/catalog_gateways_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,15 @@ import (

func TestAllSetupGateways_RegistryOnly(t *testing.T) {
gws := AllSetupGateways()
if len(gws) != 16 {
t.Fatalf("expected 16 setup gateways, got %d: %v", len(gws), gws)
if len(gws) != 18 {
t.Fatalf("expected 18 setup gateways, got %d: %v", len(gws), gws)
}
for _, id := range gws {
if id == "ai21" || id == "alibaba" {
t.Fatalf("owner slug %q should not be a gateway", id)
}
}
want := map[string]bool{"azure": true, "bedrock": true, "gemini": true, "grok": true, "openrouter": true, "kimi": true, "vertex": true, "xiaomi_mimo_payg": true, "xiaomi_mimo_token_plan": true, "deepseek": true}
want := map[string]bool{"azure": true, "bedrock": true, "gemini": true, "grok": true, "openrouter": true, "kimi": true, "vertex": true, "xiaomi_mimo_payg": true, "xiaomi_mimo_token_plan": true, "deepseek": true, "minimax_token_plan": true, "minimax_payg": true}
for id := range want {
found := false
for _, gw := range gws {
Expand Down Expand Up @@ -100,10 +100,10 @@ func TestGatewayDisplayName(t *testing.T) {
if got := GatewayDisplayName("openrouter"); got != "OpenRouter" {
t.Fatalf("display name = %q", got)
}
if got := GatewayDisplayName("google"); got != "Google Gemini" {
if got := GatewayDisplayName("google"); got != "Gemini API" {
t.Fatalf("google alias display = %q", got)
}
if got := GatewayDisplayName("gemini"); got != "Google Gemini" {
if got := GatewayDisplayName("gemini"); got != "Gemini API" {
t.Fatalf("gemini display = %q", got)
}
}
Expand Down
2 changes: 1 addition & 1 deletion internal/config/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -614,7 +614,7 @@ func providerCredentialEnvAliases(provider string) []string {
case "grok", "xai":
return nil
case "xiaomi_mimo", "xiaomi_mimo_payg":
return []string{"XIAOMI_MIMO_API_KEY"}
return []string{"XIAOMI_MIMO_PAYG_API_KEY"}
default:
return nil
}
Expand Down
12 changes: 6 additions & 6 deletions internal/config/xiaomi_setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
if saveErr := eyriecfg.SaveProviderConfig(cfg, ""); saveErr != nil {
return saveErr
}
_ = os.Setenv(eyriecfg.EnvXiaomiTokenPlanRegion, string(normalized))
base, err := eyriecfg.ResolveXiaomiOpenAIBase(ProviderXiaomiTokenPlan, cfg)
_ = os.Setenv(eyriecfg.EnvXiaomiMimoTokenPlanRegion, string(normalized))

Check failure on line 41 in internal/config/xiaomi_setup.go

View workflow job for this annotation

GitHub Actions / module hygiene

undefined: eyriecfg.EnvXiaomiMimoTokenPlanRegion

Check failure on line 41 in internal/config/xiaomi_setup.go

View workflow job for this annotation

GitHub Actions / vet

undefined: eyriecfg.EnvXiaomiMimoTokenPlanRegion

Check failure on line 41 in internal/config/xiaomi_setup.go

View workflow job for this annotation

GitHub Actions / vet

undefined: eyriecfg.EnvXiaomiMimoTokenPlanRegion
base, err := eyriecfg.ResolveXiaomiMimoOpenAIBase(ProviderXiaomiTokenPlan, cfg)

Check failure on line 42 in internal/config/xiaomi_setup.go

View workflow job for this annotation

GitHub Actions / module hygiene

undefined: eyriecfg.ResolveXiaomiMimoOpenAIBase

Check failure on line 42 in internal/config/xiaomi_setup.go

View workflow job for this annotation

GitHub Actions / vet

undefined: eyriecfg.ResolveXiaomiMimoOpenAIBase

Check failure on line 42 in internal/config/xiaomi_setup.go

View workflow job for this annotation

GitHub Actions / vet

undefined: eyriecfg.ResolveXiaomiMimoOpenAIBase
if err == nil && base != "" {
_ = os.Setenv(eyriecfg.EnvXiaomiTokenPlanBaseURL, base)
_ = os.Setenv(eyriecfg.EnvXiaomiMimoTokenPlanBaseURL, base)

Check failure on line 44 in internal/config/xiaomi_setup.go

View workflow job for this annotation

GitHub Actions / module hygiene

undefined: eyriecfg.EnvXiaomiMimoTokenPlanBaseURL

Check failure on line 44 in internal/config/xiaomi_setup.go

View workflow job for this annotation

GitHub Actions / vet

undefined: eyriecfg.EnvXiaomiMimoTokenPlanBaseURL

Check failure on line 44 in internal/config/xiaomi_setup.go

View workflow job for this annotation

GitHub Actions / vet

undefined: eyriecfg.EnvXiaomiMimoTokenPlanBaseURL
cfg.XiaomiMimoTokenPlanBaseURL = base
_ = eyriecfg.SaveProviderConfig(cfg, "")
}
Expand Down Expand Up @@ -69,9 +69,9 @@
return
}
if r := strings.TrimSpace(cfg.XiaomiMimoTokenPlanRegion); r != "" {
_ = os.Setenv(eyriecfg.EnvXiaomiTokenPlanRegion, r)
_ = os.Setenv(eyriecfg.EnvXiaomiMimoTokenPlanRegion, r)

Check failure on line 72 in internal/config/xiaomi_setup.go

View workflow job for this annotation

GitHub Actions / module hygiene

undefined: eyriecfg.EnvXiaomiMimoTokenPlanRegion

Check failure on line 72 in internal/config/xiaomi_setup.go

View workflow job for this annotation

GitHub Actions / vet

undefined: eyriecfg.EnvXiaomiMimoTokenPlanRegion

Check failure on line 72 in internal/config/xiaomi_setup.go

View workflow job for this annotation

GitHub Actions / vet

undefined: eyriecfg.EnvXiaomiMimoTokenPlanRegion
}
if base, err := eyriecfg.ResolveXiaomiOpenAIBase(ProviderXiaomiTokenPlan, cfg); err == nil && base != "" {
_ = os.Setenv(eyriecfg.EnvXiaomiTokenPlanBaseURL, base)
if base, err := eyriecfg.ResolveXiaomiMimoOpenAIBase(ProviderXiaomiTokenPlan, cfg); err == nil && base != "" {

Check failure on line 74 in internal/config/xiaomi_setup.go

View workflow job for this annotation

GitHub Actions / module hygiene

undefined: eyriecfg.ResolveXiaomiMimoOpenAIBase

Check failure on line 74 in internal/config/xiaomi_setup.go

View workflow job for this annotation

GitHub Actions / vet

undefined: eyriecfg.ResolveXiaomiMimoOpenAIBase
_ = os.Setenv(eyriecfg.EnvXiaomiMimoTokenPlanBaseURL, base)

Check failure on line 75 in internal/config/xiaomi_setup.go

View workflow job for this annotation

GitHub Actions / module hygiene

undefined: eyriecfg.EnvXiaomiMimoTokenPlanBaseURL

Check failure on line 75 in internal/config/xiaomi_setup.go

View workflow job for this annotation

GitHub Actions / vet

undefined: eyriecfg.EnvXiaomiMimoTokenPlanBaseURL
}
}
Loading