fix: repair CI build & lint regressions on main

- openai_gateway_model_availability.go: pass platform through to
  listSchedulableAccounts so OpenAI/Grok diagnosis scopes to the
  correct candidate pool (build break introduced by Grok subscription
  PR #3310).
- no_account_error.go: drop redundant context.Context type on
  ctx := context.Background() to satisfy staticcheck ST1023.
This commit is contained in:
shaw
2026-06-26 16:06:01 +08:00
parent a8cfafa02c
commit f93a6c50ce
2 changed files with 7 additions and 6 deletions
+1 -1
View File
@@ -101,7 +101,7 @@ func classifyNoAccountErrorFromGin(
displayModel string,
platform string,
) noAccountErrorClassification {
var ctx context.Context = context.Background()
ctx := context.Background()
if c != nil && c.Request != nil {
ctx = c.Request.Context()
}