Repository navigation
feat(models): surface custom relay setup - #1340
Conversation
33beb23 to
79a87f3
Compare
Astro-Han
left a comment
There was a problem hiding this comment.
Approving with three non-blocking follow-ups.
-
fetchModels(connection.slug)runs in the generic submit path atapps/desktop/src/renderer/settings/provider-add-form.tsx:87. This affects named providers as well as custom relays, adding a network wait and model-cache side effects to existing creation flows. Gate it behind the custom-relay category. -
If the user leaves the default model empty and discovery fails, the error is swallowed and the connection detail screen has no manual model-entry path. This can leave the connection in
missing_modelwith no recovery short of deleting it. Either surface the failure and provide manual entry, or require a model until that recovery path exists. -
The latest scope clarification in #1339 leaves OpenAI Responses and Anthropic-compatible relays for follow-ups, while this PR adds both to the public registry and runtime matrix. Keeping the first PR to the existing OpenAI Chat-compatible relay would make the change easier to review and revert. If the expanded scope is intentional, update the issue first.
These are non-blocking for this PR. Proceed.
|
E2E failed, I think it is related to the onboarding page setting up providers. Could you check on the test, happy path and potential corner cases? |
79a87f3 to
c87deb6
Compare
|
Thanks — fixed the failing E2E and incorporated the review feedback in What changed:
Fresh local verification after the fix:
|
|
One small follow-up for visual review: since this PR adds three first-class custom relay entries and changes the full provider setup form, could you add a live-app screenshot to the PR description? Ideally, the capture would show the relay entries in Settings → Models and one opened relay form with the endpoint, API key, and required default model fields visible. Please use fake values and make sure no real credential appears in the screenshot. This is not a merge blocker, and it does not replace the representative creation-flow E2E. It would simply make the copy, layout, and discoverability changes easier to review. |
Sure |
|
LGTM, thanks for the visual screenshot. Merging! |
Summary
Refs #1339.
Custom relay (OpenAI Chat)/自定义中转站(OpenAI Chat).openai-responses-compatible→Custom relay (OpenAI Responses)using the OpenAI Responses wire.anthropic-compatible→Custom relay (Anthropic)using the Anthropic Messages wire.fetchModelsafter creating a custom relay connection so providers exposing/v1/modelspopulate the frontend model list. This is gated to custom relays only; named/provider API-key flows keep their previous creation behavior.missing_modelif discovery fails./responses, preserves exact model ids, and preserves tool results across steps./v1/messagessemantics andx-api-keymodel discovery.cc-switch reference notes
I checked
farion1231/cc-switchandSaladDay/cc-switch-clibefore scoping this. The relevant patterns are:anthropic, OpenAI Chat, OpenAI Responses), so Maka now exposes those as separate provider/protocol entries instead of hiding them behind one generic OpenAI-compatible path.Verification
npm run typechecknpm --workspace @maka/core run build && npm --workspace @maka/core run test:dist— 1154/1154 passednpm --workspace @maka/runtime run build && node --test packages/runtime/dist/__tests__/model-fetcher.test.js packages/runtime/dist/__tests__/provider-contract-matrix.test.js packages/runtime/dist/__tests__/provider-conformance.test.js— 161/161 passednpm --workspace @maka/desktop test— 2795/2795 passednpm --workspace @maka/desktop run e2e -- e2e/first-run.spec.ts— 1/1 passednpm --workspace @maka/desktop run e2e— 32/32 passed locallyNote: full
npm --workspace @maka/runtime run test:diststill hits the pre-existing local macOS filesystem-worker smoke failure around the operation-scoped Grep sandbox / Homebrewrgdynamic library path; the provider conformance matrix and the new relay coverage pass.visual