mirror of
https://github.com/farion1231/cc-switch.git
synced 2026-07-24 21:30:17 +08:00
fix(openclaw): pass providerKey in AddProviderDialog submit handler
The providerKey was only being passed for opencode, causing openclaw provider creation to fail with "Provider key is required" error.
This commit is contained in:
@@ -94,7 +94,8 @@ export function AddProviderDialog({
|
||||
...(values.meta ? { meta: values.meta } : {}),
|
||||
};
|
||||
|
||||
if (appId === "opencode" && values.providerKey) {
|
||||
// OpenCode/OpenClaw: pass providerKey for ID generation
|
||||
if ((appId === "opencode" || appId === "openclaw") && values.providerKey) {
|
||||
providerData.providerKey = values.providerKey;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user