| | |
| | | 'use client'; |
| | | 'use client'; |
| | | |
| | | import React, { useState, useRef, useEffect } from 'react'; |
| | | import { Sparkles, Play, Settings2, Clock, ArrowRight, Zap, CheckCircle, Trash2, X, Lock, Globe, ListOrdered, Upload, Loader2 } from 'lucide-react'; |
| | |
| | | setConfigLoading(true); |
| | | setConfigError(''); |
| | | try { |
| | | const resp = await fetch('/api/config'); |
| | | const resp = await fetch('/api/config', { cache: 'no-store' }); |
| | | if (!resp.ok) throw new Error('读取默认模型配置失败'); |
| | | const data = await resp.json(); |
| | | const models = data.config?.models || {}; |