Skip to content

feat(settings): add cheapaimodel provider preset - #204

Open
nicho810 wants to merge 2 commits into
geek-fun:masterfrom
nicho810:add-cheapaimodel-provider
Open

nicho810 wants to merge 2 commits into
geek-fun:masterfrom
nicho810:add-cheapaimodel-provider

Conversation

@nicho810

@nicho810 nicho810 commented Nov 4, 2026

Copy link
Copy Markdown

Adds cheapaimodel as a provider preset in AI settings.
cheapaimodel serves open and hosted models (DeepSeek, GLM, Kimi, Grok) behind an OpenAI-compatible Chat Completions API.
It follows the same pattern as #200 and #196.
It uses the existing openai path.
There is no backend change.

Changes
  • src/views/setting/provider-form-dialog.vue: cheapaimodel preset (apiCompatibility: 'openai', base URL https://api.cheapaimodel.ai/v1), after Runcrate.
  • CHANGELOG.md: one line under Unreleased / Added.
How to test
  1. Open Settings > AI > Add provider.
  2. Select cheapaimodel.
  3. Paste an API key from https://console.cheapaimodel.ai/keys.
  4. Sync models.
  5. Chat with deepseek-v4-1-flash.

Note: kimi-k3 only accepts temperature 0.6 or 1 and top_p 0.95; other values return 400.

Checks
  • npx eslint src/views/setting/provider-form-dialog.vue: pass.
  • npx vue-tsc --noEmit: pass.
  • npx jest --ci: pass (62 suites, 861 tests).
  • Live, with curl against https://api.cheapaimodel.ai/v1 (the same OpenAI-compatible endpoints the openai path calls): GET /models lists the catalog, and a non-streaming plus a streaming POST /chat/completions returned a reply (finish_reason: stop, stream ends with [DONE]) on deepseek-v4-1-flash, glm-5.3, glm-5.3-flash, kimi-k3 and grok-4.7.
  • Not run: the packaged Tauri app, or calls through data-studio-agent itself.

Disclosure: I work on cheapaimodel.

@codecov

codecov Bot commented Nov 6, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (master@fbcbbe3). Learn more about missing BASE report.

Additional details and impacted files
@@            Coverage Diff            @@
##             master     #204   +/-   ##
=========================================
  Coverage          ?   59.62%           
=========================================
  Files             ?       90           
  Lines             ?     9253           
  Branches          ?     2193           
=========================================
  Hits              ?     5517           
  Misses            ?     3149           
  Partials          ?      587           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Blankll

Blankll commented Nov 12, 2026

Copy link
Copy Markdown
Member

Hi @nicho810 pls solve the conflicts first

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.

2 participants