Compare commits
No commits in common. "3265b6614951d77858574a192c5cedf56e07dc14" and "b3d151c9f9c62302dea0bc9d1c9320e1b9bf3183" have entirely different histories.
3265b66149
...
b3d151c9f9
@ -122,10 +122,10 @@ export async function POST(request: NextRequest) {
|
||||
})
|
||||
.returning();
|
||||
|
||||
// 创建默认用户设置(API Key 和服务地址为空,需要用户自行配置)
|
||||
// 创建默认用户设置(API Key 为空,需要用户自行配置)
|
||||
await db.insert(userSettings).values({
|
||||
userId,
|
||||
cchUrl: '', // 不设置默认值,让用户自己填写
|
||||
cchUrl: process.env.CCH_DEFAULT_URL || 'https://claude.leocoder.cn/',
|
||||
cchApiKey: null,
|
||||
cchApiKeyConfigured: false,
|
||||
defaultModel: 'claude-sonnet-4-5-20250929',
|
||||
|
||||
@ -7,7 +7,7 @@ import { encryptApiKey } from '@/lib/crypto';
|
||||
|
||||
// 默认设置值
|
||||
const DEFAULT_SETTINGS = {
|
||||
cchUrl: '', // 不设置默认值,让用户自己填写
|
||||
cchUrl: process.env.CCH_DEFAULT_URL || 'https://claude.leocoder.cn/',
|
||||
cchApiKeyConfigured: false,
|
||||
metasoApiKeyConfigured: false,
|
||||
apiFormat: 'claude' as 'claude' | 'openai', // API 格式:claude(原生)| openai(兼容)
|
||||
|
||||
@ -362,7 +362,7 @@ export default function SettingsPage() {
|
||||
className="settings-input w-80"
|
||||
value={cchUrl}
|
||||
onChange={(e) => setCchUrl(e.target.value)}
|
||||
placeholder="请输入 CCH 服务地址,例如:https://api.example.com"
|
||||
placeholder="https://claude.leocoder.cn/"
|
||||
/>
|
||||
</SettingsItem>
|
||||
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
'use client';
|
||||
|
||||
import { useState, useRef, useEffect } from 'react';
|
||||
import { Wrench, Search, Terminal, Globe, Check, FileText, Languages } from 'lucide-react';
|
||||
import { Wrench, Search, Terminal, Globe, Check } from 'lucide-react';
|
||||
import { Toggle } from '@/components/ui/Toggle';
|
||||
import { Tooltip } from '@/components/ui/Tooltip';
|
||||
import { cn } from '@/lib/utils';
|
||||
@ -11,8 +11,6 @@ const iconMap: Record<string, React.ComponentType<{ size?: number; className?: s
|
||||
Search,
|
||||
Terminal,
|
||||
Globe,
|
||||
FileText,
|
||||
Languages,
|
||||
};
|
||||
|
||||
interface ToolsDropdownProps {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user