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/',
|
cchUrl: process.env.CCH_DEFAULT_URL || 'https://claude.leocoder.cn/',
|
||||||
cchApiKey: null,
|
cchApiKey: null,
|
||||||
cchApiKeyConfigured: false,
|
cchApiKeyConfigured: false,
|
||||||
defaultModel: 'claude-sonnet-4-20250514',
|
defaultModel: 'claude-sonnet-4-5-20250929',
|
||||||
defaultTools: ['web_search', 'code_execution', 'web_fetch'],
|
defaultTools: ['web_search', 'code_execution', 'web_fetch'],
|
||||||
theme: 'light',
|
theme: 'light',
|
||||||
language: 'zh-CN',
|
language: 'zh-CN',
|
||||||
|
|||||||
@ -57,7 +57,7 @@ export async function POST(request: Request) {
|
|||||||
.values({
|
.values({
|
||||||
conversationId,
|
conversationId,
|
||||||
title: title || '新对话',
|
title: title || '新对话',
|
||||||
model: model || 'claude-sonnet-4-20250514',
|
model: model || 'claude-sonnet-4-5-20250929',
|
||||||
tools: tools || [],
|
tools: tools || [],
|
||||||
enableThinking: enableThinking || false,
|
enableThinking: enableThinking || false,
|
||||||
userId: user.userId, // 关联当前用户
|
userId: user.userId, // 关联当前用户
|
||||||
|
|||||||
@ -152,7 +152,7 @@ export default function AssistantsPage() {
|
|||||||
|
|
||||||
// 创建新对话
|
// 创建新对话
|
||||||
const newConversation = await createConversation({
|
const newConversation = await createConversation({
|
||||||
model: settings?.defaultModel || 'claude-sonnet-4-20250514',
|
model: settings?.defaultModel || 'claude-sonnet-4-5-20250929',
|
||||||
tools: settings?.defaultTools || [],
|
tools: settings?.defaultTools || [],
|
||||||
enableThinking: settings?.enableThinking || false,
|
enableThinking: settings?.enableThinking || false,
|
||||||
assistantId: assistant.id,
|
assistantId: assistant.id,
|
||||||
|
|||||||
@ -111,7 +111,7 @@ export function NewChatModal({ isOpen, onClose }: NewChatModalProps) {
|
|||||||
setIsCreating(true);
|
setIsCreating(true);
|
||||||
try {
|
try {
|
||||||
const newConversation = await createConversation({
|
const newConversation = await createConversation({
|
||||||
model: settings?.defaultModel || 'claude-sonnet-4-20250514',
|
model: settings?.defaultModel || 'claude-sonnet-4-5-20250929',
|
||||||
tools: settings?.defaultTools || [],
|
tools: settings?.defaultTools || [],
|
||||||
enableThinking: settings?.enableThinking || false,
|
enableThinking: settings?.enableThinking || false,
|
||||||
assistantId: assistant?.id,
|
assistantId: assistant?.id,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user