Repository navigation
feat: add AI/ML API answer provider and MCP example - #201
Closed
Lookoff-AIMLAPI wants to merge 1 commit into
Closed
Lookoff-AIMLAPI wants to merge 1 commit into
Lookoff-AIMLAPI wants to merge 1 commit into
Conversation
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.
Change and validation
Adds AI/ML API as an answer provider at
https://api.aimlapi.com/v1, following the existing OpenRouter/302.AI presets. Existing settings, defaults, quick setup and Jev providers are unchanged; model IDs remain user-entered.Adds an opt-in MCP example at
https://mcp.aimlapi.com/mcpwith confirmation before calls enabled. Users supply a Bearer header through the existing credentials editor. The example is not automatically connected or bound to models. Updates localized labels, Chinese/English docs and bilingual release notes, and regenerates changelog pages.Validation:
npx vitest run --maxWorkers=2: base 1082 passed, 2 failed; branch 1085 passed, 2 failed. Both runs covered 125 files. The same two failures are inweb-clipper.test.jsbecausebrowser-extension/buildis absent.npx vitest run --maxWorkers=2 tests/provider-settings.test.ts tests/mcp-settings.test.ts: 50 passed.npm --prefix docs-site run build: passed.cd core && cargo build --example aimlapi_live -j 2, thencd core && $CARGO_TARGET_DIR/debug/examples/aimlapi_live deepseek/deepseek-v4.1-flash.models::test_connectionsucceeded andmcp::testreturned 25 tools. The temporary example was removed; the key was not saved.Boundaries: credentials and redirect handling retain the existing shared implementation. No redirect leakage regression test was added; manually changing an MCP URL can retain its headers. OAuth is not implemented. Public model catalog retrieval was used to select the live-test model, not added as an application feature.
Platform and synchronization
mainE2E macosandE2E windowschecks remain pending. Before merging, fetch remote version tags, verify release heading0.4.7against release automation, and runnpm --prefix docs-site run changelog:lint.