This skill guides developers through selecting an existing driver or implementing special provider behavior, while keeping provider configuration and credential handling within the appropriate owners. It covers the inputs to gather, files and runtime details to inspect, implementation guardrails, planning updates, and checks to run. It also distinguishes model-list or connection checks from testing a built-in agent conversation through Dim.
88%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
DeepChat owns provider presets, credentials, model discovery, and model capability metadata.
The built-in agent sends requests through Dim's native drivers. Keep shared model catalog data
in PublicProviderConf and verify the driver independently of the catalog entry.
Collect or derive these before editing source:
For a user-configured endpoint, use the matching API type to verify compatibility. In Add Provider,
OpenAI Completions sends /chat/completions and OpenAI sends /responses.
For a built-in preset, inspect defaults.ts, providerId.ts, and providerRegistry.ts
under src/main/provider/. The registry resolves the provider ID first, then its API type.
src/main/provider/providerTransport.ts selects the wire protocol, including per-model routes
for aggregators. src/main/agent/dim/modelCatalog.ts maps this protocol to the native driver.
A compatible new brand can reuse that driver without a Dim catalog entry or a Dim upgrade.
Change settings fields only when the existing form cannot represent the required configuration.
Choose the code owner based on the required behavior:
src/main/provider/, including
providers/aiSdkProvider.ts and managers/providerInstanceManager.ts.src/main/provider/auth/ and the typed provider routes.
Follow src/main/agent/dim/providerCredentials.ts and
native/dim-host/src/provider_connections.rs to deliver credentials and protected headers
through the existing connection owner.resources/dim-runtime-lock.json.ProviderRuntimeDefinition, generated runtime manifests, or runtime package-name
inference.docs/features/provider-runtime/spec.md when the provider work touches the provider runtime
scope. Also read plan.md if it exists for an active provider-runtime goal. Treat any legacy
tasks.md as migration input rather than another execution tracker.plan.md as coherent implementation slices land, when one exists. For a
legacy tasks.md, merge remaining work into the existing plan; without one, keep a single-slice
complex bug checklist in spec.md and create plan.md for feature, architecture, or multi-slice
bug work. Do not update or recreate the task file.pnpm run format
pnpm run i18n
pnpm run lint
pnpm run typecheckRun focused main/renderer tests for any touched provider code.
Report:
ThinkInAIXYZ/deepchat
404f064
pnpmpnpm runpnpm run formatpnpm run i18npnpm run lintpnpm run typecheckIf you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.