From 0a0eb378fa752294fd55ccbf04b2e71f8bb85fa0 Mon Sep 17 00:00:00 2001 From: imeepos Date: Mon, 1 Sep 2025 15:26:54 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BB=A3=E7=A0=81=E6=B8=85=E7=90=86?= =?UTF-8?q?=E5=92=8C=E6=A8=A1=E5=9E=8B=E5=90=8D=E7=A7=B0=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除未使用的showToast导入 - 恢复正确的模型名称为gemini-2.5-flash-image-preview --- src/pages/index/index.tsx | 2 +- src/sdk/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/index/index.tsx b/src/pages/index/index.tsx index c4e536b..9b20d16 100644 --- a/src/pages/index/index.tsx +++ b/src/pages/index/index.tsx @@ -1,5 +1,5 @@ import { View, Text, Button, Image } from '@tarojs/components' -import { useLoad, showToast } from '@tarojs/taro' +import { useLoad } from '@tarojs/taro' import { useState } from 'react' import './index.css' import { useSdk } from '../../hooks/index' diff --git a/src/sdk/index.ts b/src/sdk/index.ts index 9ef76fc..b466f18 100644 --- a/src/sdk/index.ts +++ b/src/sdk/index.ts @@ -229,7 +229,7 @@ export class BowongAISDK { async generateImage(params: GenerateImageParams): Promise { const { prompt, - model_name = 'gemini-2.5-flash-image', + model_name = 'gemini-2.5-flash-image-preview', aspect_ratio = '9:16', mode = 'turbo', webhook_flag = false,