feat(providers): add Empero (GLM 5.3 Flash) BYOK provider - #206
Open
ik0zy wants to merge 1 commit into
Open
Conversation
Wire in Empero as a free community OpenAI-compatible BYOK provider offering GLM 5.3 Flash with generous limits: - providers.ts: Inference catalog entry (EMPERO_API_KEY, chat-capable) - byok.rs: ENV_KEY_VARS entry recognising EMPERO_API_KEY in shell profiles - modelchat.rs: provider_endpoint arm for https://free.empero.org/v1 and fallback model - model-catalog.ts: PREFERRED entry with glm-5.3-flash - crates/atlas-cersei: base URL mapping and default model with unit test coverage Closes pacifio#172
There was a problem hiding this comment.
🟢 Approval recommended
The provider is consistently integrated across frontend + Tauri + runtime mapping layers, and the new Rust provider wiring includes direct unit test coverage.
Pull request overview
Adds Empero (https://free.empero.org/v1) as an OpenAI-compatible BYOK provider so Atlas can use the community-hosted glm-5.3-flash model via the existing chat + model-catalog flows.
Changes:
- Added an Empero provider entry to the Settings → API Keys catalog (env var, docs URL, placeholder, chat-capable).
- Wired Empero into the Tauri BYOK env-var importer and model-chat provider endpoint + fallback model list.
- Added Empero base URL + default model mapping in
atlas-cerseiwith unit tests.
File summaries
| File | Description |
|---|---|
| src/features/settings/lib/providers.ts | Adds the Empero provider definition for the BYOK settings UI. |
| src/features/settings/lib/model-catalog.ts | Adds glm-5.3-flash to the preferred coding model list for Empero. |
| src-tauri/src/commands/modelchat.rs | Adds Empero to provider endpoint resolution and fallback models for chat/model listing. |
| src-tauri/src/commands/byok.rs | Adds EMPERO_API_KEY to the env var discovery table for BYOK key import. |
| crates/atlas-cersei/src/provider.rs | Adds Empero OpenAI-compat base URL + default model mapping with tests. |
Review details
- Files reviewed: 5/5 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What?
Adds Empero (
https://free.empero.org/v1) as an OpenAI-compatible BYOK provider, offering free community access toglm-5.3-flashwith generous limits.Why?
Addresses #172 by providing a free, community-accessible endpoint for GLM 5.3 Flash.
freeor exported asEMPERO_API_KEY).free.empero.org), requests do not have Zero Data Retention (ZDR) — prompts and completions are logged with hashed IPs to help train better open models.How?
src/features/settings/lib/providers.ts: Added catalog entry underInferencewith docs link,freeplaceholder, andchat: true.src-tauri/src/commands/byok.rs: Added("empero", &["EMPERO_API_KEY"])toENV_KEY_VARS.src-tauri/src/commands/modelchat.rs: Added endpoint armhttps://free.empero.org/v1andglm-5.3-flashto fallback models.src/features/settings/lib/model-catalog.ts: Addedglm-5.3-flashto the preferred coding model catalog.crates/atlas-cersei/src/provider.rs: Added base URL and default model mappings with unit test coverage.Fixes #172
Checklist
main(synced with latest release)atlas-cerseiand passes all IPC contract testsoxfmt), linting (oxlint), and full typechecking (tsc) pass cleanly