fix: maxContextTime

This commit is contained in:
Acbox
2026-01-15 00:12:42 +08:00
parent 1945e9bfbf
commit a9556835f8
4 changed files with 10 additions and 6 deletions
-2
View File
@@ -48,7 +48,6 @@ export async function startInteractiveMode(options: { maxContextTime?: string; l
await agentCore.chatStream(
{
message: input,
maxContextLoadTime: parseInt(options.maxContextTime || '60'),
language: options.language || 'Chinese',
},
async (event) => {
@@ -96,7 +95,6 @@ export function agentCommands(program: Command) {
await agentCore.chatStream(
{
message,
maxContextLoadTime: parseInt(options.maxContextTime),
language: options.language,
},
async (event) => {
-2
View File
@@ -3,7 +3,6 @@ import type { MemohContext } from './context'
export interface ChatParams {
message: string
maxContextLoadTime?: number
language?: string
}
@@ -67,7 +66,6 @@ async function performStreamChat(
},
body: JSON.stringify({
message: params.message,
maxContextLoadTime: params.maxContextLoadTime || 60,
language: params.language || 'Chinese',
}),
})