Skip to content

Commit 2af9108

Browse files
committed
Rename
1 parent 0199992 commit 2af9108

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

packages/types/src/provider-settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ const openRouterSchema = baseProviderSettingsSchema.extend({
143143
openRouterSpecificProvider: z.string().optional(),
144144
openRouterUseMiddleOutTransform: z.boolean().optional(),
145145
// Image generation settings (experimental)
146-
imageGenerationSettings: z
146+
openRouterImageGenerationSettings: z
147147
.object({
148148
openRouterApiKey: z.string().optional(),
149149
selectedModel: z.string().optional(),

src/core/tools/generateImageTool.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export async function generateImageTool(
7474

7575
// Get OpenRouter API key from experimental settings ONLY (no fallback to profile)
7676
const apiConfiguration = state?.apiConfiguration
77-
const imageGenerationSettings = apiConfiguration?.imageGenerationSettings
77+
const imageGenerationSettings = apiConfiguration?.openRouterImageGenerationSettings
7878
const openRouterApiKey = imageGenerationSettings?.openRouterApiKey
7979

8080
if (!openRouterApiKey) {

webview-ui/src/components/settings/ImageGenerationSettings.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export const ImageGenerationSettings = ({
2929
const { t } = useAppTranslation()
3030

3131
// Get image generation settings from apiConfiguration
32-
const imageGenerationSettings = apiConfiguration?.imageGenerationSettings || {}
32+
const imageGenerationSettings = apiConfiguration?.openRouterImageGenerationSettings || {}
3333
const [openRouterApiKey, setOpenRouterApiKey] = useState(imageGenerationSettings.openRouterApiKey || "")
3434
const [selectedModel, setSelectedModel] = useState(
3535
imageGenerationSettings.selectedModel || IMAGE_GENERATION_MODELS[0].value,
@@ -41,7 +41,7 @@ export const ImageGenerationSettings = ({
4141
openRouterApiKey,
4242
selectedModel,
4343
}
44-
setApiConfigurationField("imageGenerationSettings", newSettings)
44+
setApiConfigurationField("openRouterImageGenerationSettings", newSettings)
4545
}, [openRouterApiKey, selectedModel, setApiConfigurationField])
4646

4747
return (

0 commit comments

Comments
 (0)