mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-27 07:16:19 +09:00
fix: maxContextTime
This commit is contained in:
@@ -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) => {
|
||||
|
||||
@@ -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',
|
||||
}),
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user