chore: 更新默认模型版本为 claude-sonnet-4-5-20250929
- 更新注册接口默认模型配置 - 更新会话创建默认模型 - 更新助手页面默认模型 - 更新新对话弹窗默认模型
This commit is contained in:
parent
fbac280be3
commit
c341b0d67d
@ -128,7 +128,7 @@ export async function POST(request: NextRequest) {
|
||||
cchUrl: process.env.CCH_DEFAULT_URL || 'https://claude.leocoder.cn/',
|
||||
cchApiKey: null,
|
||||
cchApiKeyConfigured: false,
|
||||
defaultModel: 'claude-sonnet-4-20250514',
|
||||
defaultModel: 'claude-sonnet-4-5-20250929',
|
||||
defaultTools: ['web_search', 'code_execution', 'web_fetch'],
|
||||
theme: 'light',
|
||||
language: 'zh-CN',
|
||||
|
||||
@ -57,7 +57,7 @@ export async function POST(request: Request) {
|
||||
.values({
|
||||
conversationId,
|
||||
title: title || '新对话',
|
||||
model: model || 'claude-sonnet-4-20250514',
|
||||
model: model || 'claude-sonnet-4-5-20250929',
|
||||
tools: tools || [],
|
||||
enableThinking: enableThinking || false,
|
||||
userId: user.userId, // 关联当前用户
|
||||
|
||||
@ -152,7 +152,7 @@ export default function AssistantsPage() {
|
||||
|
||||
// 创建新对话
|
||||
const newConversation = await createConversation({
|
||||
model: settings?.defaultModel || 'claude-sonnet-4-20250514',
|
||||
model: settings?.defaultModel || 'claude-sonnet-4-5-20250929',
|
||||
tools: settings?.defaultTools || [],
|
||||
enableThinking: settings?.enableThinking || false,
|
||||
assistantId: assistant.id,
|
||||
|
||||
@ -111,7 +111,7 @@ export function NewChatModal({ isOpen, onClose }: NewChatModalProps) {
|
||||
setIsCreating(true);
|
||||
try {
|
||||
const newConversation = await createConversation({
|
||||
model: settings?.defaultModel || 'claude-sonnet-4-20250514',
|
||||
model: settings?.defaultModel || 'claude-sonnet-4-5-20250929',
|
||||
tools: settings?.defaultTools || [],
|
||||
enableThinking: settings?.enableThinking || false,
|
||||
assistantId: assistant?.id,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user