suisuyy commited on
Commit ·
2ad3955
1
Parent(s): 69ae4e4
Update AiImageQuality type to use 'high' instead of 'hd'; adjust quality options in SettingsPanel
Browse files- components/SettingsPanel.tsx +1 -1
- hooks/useAiFeatures.ts +2 -2
components/SettingsPanel.tsx
CHANGED
|
@@ -66,7 +66,7 @@ const SettingsPanel: React.FC<SettingsPanelProps> = ({
|
|
| 66 |
const qualityOptions: { label: string; value: AiImageQuality }[] = [
|
| 67 |
{ label: t('qualityLow'), value: 'low' },
|
| 68 |
{ label: t('qualityMedium'), value: 'medium' },
|
| 69 |
-
{ label: t('qualityHigh'), value: '
|
| 70 |
];
|
| 71 |
|
| 72 |
const handleSizeSelection = (event: React.ChangeEvent<HTMLSelectElement>) => {
|
|
|
|
| 66 |
const qualityOptions: { label: string; value: AiImageQuality }[] = [
|
| 67 |
{ label: t('qualityLow'), value: 'low' },
|
| 68 |
{ label: t('qualityMedium'), value: 'medium' },
|
| 69 |
+
{ label: t('qualityHigh'), value: 'high' },
|
| 70 |
];
|
| 71 |
|
| 72 |
const handleSizeSelection = (event: React.ChangeEvent<HTMLSelectElement>) => {
|
hooks/useAiFeatures.ts
CHANGED
|
@@ -8,7 +8,7 @@ const SHARE_API_URL = 'https://sharefile.suisuy.eu.org';
|
|
| 8 |
const ASK_API_URL = 'https://getai.deno.dev/';
|
| 9 |
const MAX_UPLOAD_SIZE_BYTES = 50 * 1024 * 1024; // 50MB
|
| 10 |
|
| 11 |
-
export type AiImageQuality = 'low' | 'medium' | '
|
| 12 |
export type AiDimensionsMode = 'api_default' | 'match_canvas' | 'fixed_1024';
|
| 13 |
|
| 14 |
interface AiFeaturesHook {
|
|
@@ -304,4 +304,4 @@ export const useAiFeatures = ({
|
|
| 304 |
setAiPrompt,
|
| 305 |
clearAskUrl,
|
| 306 |
};
|
| 307 |
-
};
|
|
|
|
| 8 |
const ASK_API_URL = 'https://getai.deno.dev/';
|
| 9 |
const MAX_UPLOAD_SIZE_BYTES = 50 * 1024 * 1024; // 50MB
|
| 10 |
|
| 11 |
+
export type AiImageQuality = 'low' | 'medium' | 'high';
|
| 12 |
export type AiDimensionsMode = 'api_default' | 'match_canvas' | 'fixed_1024';
|
| 13 |
|
| 14 |
interface AiFeaturesHook {
|
|
|
|
| 304 |
setAiPrompt,
|
| 305 |
clearAskUrl,
|
| 306 |
};
|
| 307 |
+
};
|