Repository navigation
feat: add deAPI provider - #2604
adampachowicz wants to merge 5 commits into
Conversation
…ield, underscored numbers
- Rename all model files to match exact deAPI native slugs so consumers (OpenCode, Vercel AI SDK) send the correct model identifier to https://oai.deapi.ai/v1 (model id is auto-derived from filename): bge-m3-fp16 -> Bge_M3_FP16 flux1schnell -> Flux1schnell flux2klein4b -> Flux_2_Klein_4B_BF16 z-image-turbo -> ZImageTurbo_INT8 z-anime -> ZAnimeDistill_8Step_INT8 - Add "z-image" to packages/core/src/family.ts enum so Z-Image models can be properly classified. - Correct Z-Image release dates: ZImageTurbo_INT8: 2025-03-15 -> 2025-11-26 (Tongyi Lab) ZAnimeDistill_8Step_INT8: 2025-03-15 -> 2025-12-28
Reviewer correctly flagged that the previous logo.svg was not the deAPI brand mark. The chip glyph below is taken from the deAPI brand system (pixel-art frame with center slash, amber #FFBA00 in product contexts; here exported as a flat icon-only path with currentColor so models.dev can theme it light/dark). - Path data sourced from the official deAPI marketing site (resources/v2/assets/logo.svg, chip-glyph subpath). - Centered inside viewBox="0 0 40 40" via translate(5.4525, 4) so the 29.095x32 chip art is padded evenly (~5.45px / 4px). - Single currentColor fill, no embedded color tokens, no defs. Apologies to the maintainer — that was a sourcing mistake on our end, not a misrepresentation of the provider.
|
let's:
|
- add packages/core/script/generate-deapi.ts (deapi:generate) that reconciles local model TOMLs against the live deAPI /v1/models catalog; scaffolds stubs for new models and warns on files the API no longer serves - deAPI's OpenAI-compatible endpoint exposes only model IDs (no pricing, context or modalities), so per-model metadata stays hand-curated - remove ZAnimeDistill_8Step_INT8: not present in the live deAPI catalog Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Thanks for the review! Addressed below: sync script ✅ — Added base_model — Not applicable here: none of these have an upstream base in the reasoning options — Not applicable: these are embedding and image models, so Let me know if you'd like anything else adjusted! |
|
Closing this pull request as stale because it has not been updated in 7 days after feedback from @rekram1-node. Feel free to reopen it or submit a new pull request if the work is resumed. |
Resubmitting the deAPI provider registration (previously #1855, which was auto-closed as stale). Rebased onto the latest
dev;bun run validatepasses locally.Re: the logo concern from #1855 — the logo file was flagged there as possibly being the OpenAI mark. That was a mistaken asset on our side and has been fixed:
providers/deapi/logo.svgis now the official deAPI chip glyph (currentColoronly, so it themes cleanly), not the OpenAI logo. Could you take another look?About the provider: deAPI is a real, OpenAI-compatible inference provider, legally operated by CoinAxe Ltd (Malta). Docs: https://docs.deapi.ai
Purely additive — adds
provider.toml,logo.svg, and 5 model entries (BGE-M3 embeddings + image models); no changes to other providers. Happy to adjust anything to match your conventions. Thanks for maintaining models.dev!