Skip to content

Commit a1f877f

Browse files
committed
All creator modes use creator model
1 parent 8e41a58 commit a1f877f

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/core/webview/ClineProvider.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -828,20 +828,12 @@ export class ClineProvider extends EventEmitter<ClineProviderEvents> implements
828828
let apiConfig = await this.providerSettingsManager.loadConfig(config.name)
829829

830830
// Switch to pearai-model-creator model if we are in Creator Mode
831-
if (newMode == PEARAI_CREATOR_MODE_WEBAPP_MANAGER_SLUG) {
831+
if (newMode == PEARAI_CREATOR_MODE_WEBAPP_MANAGER_SLUG || newMode.includes('creator')) {
832832
apiConfig = {
833833
...apiConfig,
834834
apiProvider: "pearai",
835835
apiModelId: "pearai-model-creator",
836836
}
837-
} else {
838-
if (apiConfig.apiModelId == "pearai-model-creator") {
839-
apiConfig = {
840-
...apiConfig,
841-
apiProvider: "pearai",
842-
apiModelId: "pearai-model",
843-
}
844-
}
845837
}
846838

847839
await Promise.all([

0 commit comments

Comments
 (0)