chore: remove unused config
This commit is contained in:
@@ -18,8 +18,6 @@ export interface ContainerServices {
|
||||
export function createAppContainer(options: {
|
||||
neuri: Neuri
|
||||
model?: string
|
||||
maxHistoryLength?: number
|
||||
idleTimeout?: number
|
||||
}) {
|
||||
const container = createContainer<ContainerServices>({
|
||||
injectionMode: InjectionMode.PROXY,
|
||||
@@ -62,8 +60,6 @@ export function createAppContainer(options: {
|
||||
agent: options.neuri,
|
||||
model: options.model,
|
||||
},
|
||||
maxHistoryLength: options.maxHistoryLength,
|
||||
idleTimeout: options.idleTimeout,
|
||||
})),
|
||||
})
|
||||
|
||||
|
||||
@@ -20,8 +20,6 @@ export function LLMAgent(options: LLMAgentOptions): MineflayerPlugin {
|
||||
const container = createAppContainer({
|
||||
neuri: options.agent,
|
||||
model: openaiConfig.model,
|
||||
maxHistoryLength: 50,
|
||||
idleTimeout: 5 * 60 * 1000,
|
||||
})
|
||||
|
||||
const actionAgent = container.resolve('actionAgent')
|
||||
|
||||
Reference in New Issue
Block a user