Skip to content

feat(providers): add Empero (GLM 5.3 Flash) BYOK provider - #206

Open
ik0zy wants to merge 1 commit into
pacifio:mainfrom
ik0zy:ik0zy/172-add-empero-provider
Open

feat(providers): add Empero (GLM 5.3 Flash) BYOK provider#206
ik0zy wants to merge 1 commit into
pacifio:mainfrom
ik0zy:ik0zy/172-add-empero-provider

Conversation

@ik0zy

@ik0zy ik0zy commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

What?

Adds Empero (https://free.empero.org/v1) as an OpenAI-compatible BYOK provider, offering free community access to glm-5.3-flash with generous limits.

Why?

Addresses #172 by providing a free, community-accessible endpoint for GLM 5.3 Flash.

  • Free with generous limits: Accessible to any user without requiring a paid subscription or account creation. Any API key string is accepted (e.g. free or exported as EMPERO_API_KEY).
  • Data Retention & Privacy Notice: Empero is an independent AI research lab community endpoint. As noted on their official site (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 under Inference with docs link, free placeholder, and chat: true.
  • src-tauri/src/commands/byok.rs: Added ("empero", &["EMPERO_API_KEY"]) to ENV_KEY_VARS.
  • src-tauri/src/commands/modelchat.rs: Added endpoint arm https://free.empero.org/v1 and glm-5.3-flash to fallback models.
  • src/features/settings/lib/model-catalog.ts: Added glm-5.3-flash to 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

  • Targets main (synced with latest release)
  • New behaviour has unit test coverage in atlas-cersei and passes all IPC contract tests
  • Pre-commit formatting (oxfmt), linting (oxlint), and full typechecking (tsc) pass cleanly

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
Copilot AI lite review requested due to automatic review settings August 27, 2026 14:55

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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-cersei with 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.

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.

Add a BYOK provider

2 participants