fix: 代码清理和模型名称修正

- 移除未使用的showToast导入
- 恢复正确的模型名称为gemini-2.5-flash-image-preview
This commit is contained in:
imeepos 2025-09-01 15:26:54 +08:00
parent faefda3ea2
commit 0a0eb378fa
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
import { View, Text, Button, Image } from '@tarojs/components' import { View, Text, Button, Image } from '@tarojs/components'
import { useLoad, showToast } from '@tarojs/taro' import { useLoad } from '@tarojs/taro'
import { useState } from 'react' import { useState } from 'react'
import './index.css' import './index.css'
import { useSdk } from '../../hooks/index' import { useSdk } from '../../hooks/index'

View File

@ -229,7 +229,7 @@ export class BowongAISDK {
async generateImage(params: GenerateImageParams): Promise<string> { async generateImage(params: GenerateImageParams): Promise<string> {
const { const {
prompt, prompt,
model_name = 'gemini-2.5-flash-image', model_name = 'gemini-2.5-flash-image-preview',
aspect_ratio = '9:16', aspect_ratio = '9:16',
mode = 'turbo', mode = 'turbo',
webhook_flag = false, webhook_flag = false,