Skip to content

Commit e85409f

Browse files
committed
Cleanup
1 parent 7a7b12d commit e85409f

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

packages/types/src/provider-settings.ts

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,6 @@ const baseProviderSettingsSchema = z.object({
112112

113113
// Model verbosity.
114114
verbosity: verbosityLevelsSchema.optional(),
115-
116-
// Image generation settings (experimental)
117-
imageGenerationSettings: z
118-
.object({
119-
openRouterApiKey: z.string().optional(),
120-
selectedModel: z.string().optional(),
121-
})
122-
.optional(),
123115
})
124116

125117
// Several of the providers share common model config properties.
@@ -150,6 +142,13 @@ const openRouterSchema = baseProviderSettingsSchema.extend({
150142
openRouterBaseUrl: z.string().optional(),
151143
openRouterSpecificProvider: z.string().optional(),
152144
openRouterUseMiddleOutTransform: z.boolean().optional(),
145+
// Image generation settings (experimental)
146+
imageGenerationSettings: z
147+
.object({
148+
openRouterApiKey: z.string().optional(),
149+
selectedModel: z.string().optional(),
150+
})
151+
.optional(),
153152
})
154153

155154
const bedrockSchema = apiModelIdProviderModelSchema.extend({

pnpm-lock.yaml

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@
429429
"@mistralai/mistralai": "^1.9.18",
430430
"@modelcontextprotocol/sdk": "^1.9.0",
431431
"@qdrant/js-client-rest": "^1.14.0",
432-
"@roo-code/cloud": "^0.25.0",
432+
"@roo-code/cloud": "^0.27.0",
433433
"@roo-code/ipc": "workspace:^",
434434
"@roo-code/telemetry": "workspace:^",
435435
"@roo-code/types": "workspace:^",

webview-ui/src/components/chat/ChatView.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,6 +1048,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
10481048
"newFileCreated",
10491049
"searchAndReplace",
10501050
"insertContent",
1051+
"generateImage",
10511052
].includes(tool.tool)
10521053
}
10531054

@@ -1195,7 +1196,7 @@ const ChatViewComponent: React.ForwardRefRenderFunction<ChatViewRef, ChatViewPro
11951196
return alwaysAllowReadOnly && (!isOutsideWorkspace || alwaysAllowReadOnlyOutsideWorkspace)
11961197
}
11971198

1198-
if (isWriteToolAction(message) || tool?.tool === "generateImage") {
1199+
if (isWriteToolAction(message)) {
11991200
return (
12001201
alwaysAllowWrite &&
12011202
(!isOutsideWorkspace || alwaysAllowWriteOutsideWorkspace) &&

0 commit comments

Comments
 (0)