fix: 代码清理和模型名称修正
- 移除未使用的showToast导入 - 恢复正确的模型名称为gemini-2.5-flash-image-preview
This commit is contained in:
parent
faefda3ea2
commit
0a0eb378fa
|
|
@ -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'
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue