Skip to content

Add warning for communities using shared platform key#223

Merged
neuromechanist merged 1 commit intodevelopfrom
feature/issue-220-platform-key-warning
Feb 25, 2026
Merged

Add warning for communities using shared platform key#223
neuromechanist merged 1 commit intodevelopfrom
feature/issue-220-platform-key-warning

Conversation

@neuromechanist
Copy link
Member

Summary

  • Communities without openrouter_api_key_env_var in their config.yaml (e.g., EEGLAB, NEMAR) were silently using the platform key with status "degraded" but no warning message
  • Now all communities without a dedicated API key show a warning: "No community-specific API key configured; using shared OSA platform key..."
  • This makes the dashboard display the orange warning banner for all communities using the platform key, not just HED and BIDS

Follow-up to PR #221 and #222.

Test plan

  • uv run pytest tests/test_api/test_health.py tests/test_api/test_community_router.py -v -- 55 tests pass
  • Verify EEGLAB/NEMAR now return warnings in /metrics/public response

Communities without openrouter_api_key_env_var configured were
silently using the platform key with no warning. Now all
communities without a dedicated API key show a warning on the
status dashboard.
@neuromechanist neuromechanist merged commit cbd4609 into develop Feb 25, 2026
7 checks passed
@neuromechanist neuromechanist deleted the feature/issue-220-platform-key-warning branch February 25, 2026 00:09
@neuromechanist neuromechanist mentioned this pull request Feb 25, 2026
4 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant