mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-04-29 19:44:53 +02:00
refactor/cleanup
This commit is contained in:
parent
5dca9b778f
commit
dcdb7d2de1
5 changed files with 3 additions and 5 deletions
|
@ -1,6 +1,6 @@
|
||||||
import { History } from './history.js';
|
import { History } from './history.js';
|
||||||
import { Coder } from './coder.js';
|
import { Coder } from './coder.js';
|
||||||
import { VisionInterpreter } from './vision_interpreter.js';
|
import { VisionInterpreter } from './vision/vision_interpreter.js';
|
||||||
import { Prompter } from '../models/prompter.js';
|
import { Prompter } from '../models/prompter.js';
|
||||||
import { initModes } from './modes.js';
|
import { initModes } from './modes.js';
|
||||||
import { initBot } from '../utils/mcdata.js';
|
import { initBot } from '../utils/mcdata.js';
|
||||||
|
|
|
@ -1,9 +1,7 @@
|
||||||
import * as mc from "../../utils/mcdata.js";
|
import * as mc from "../../utils/mcdata.js";
|
||||||
import { Camera } from "../../utils/camera.js";
|
|
||||||
import * as world from "./world.js";
|
import * as world from "./world.js";
|
||||||
import pf from 'mineflayer-pathfinder';
|
import pf from 'mineflayer-pathfinder';
|
||||||
import Vec3 from 'vec3';
|
import Vec3 from 'vec3';
|
||||||
import fs from 'fs';
|
|
||||||
|
|
||||||
|
|
||||||
export function log(bot, message) {
|
export function log(bot, message) {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { Vec3 } from 'vec3';
|
import { Vec3 } from 'vec3';
|
||||||
import { Camera } from "../utils/camera.js";
|
import { Camera } from "./camera.js";
|
||||||
import fs from 'fs';
|
import fs from 'fs';
|
||||||
|
|
||||||
const RENDER_TIME = 1000;
|
const RENDER_TIME = 1000;
|
|
@ -26,7 +26,7 @@ export class Claude {
|
||||||
this.params.max_tokens = this.params.thinking.budget_tokens + 1000;
|
this.params.max_tokens = this.params.thinking.budget_tokens + 1000;
|
||||||
// max_tokens must be greater than thinking.budget_tokens
|
// max_tokens must be greater than thinking.budget_tokens
|
||||||
} else {
|
} else {
|
||||||
this.params.max_tokens = 16000;
|
this.params.max_tokens = 4096;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
const resp = await this.anthropic.messages.create({
|
const resp = await this.anthropic.messages.create({
|
||||||
|
|
Loading…
Add table
Reference in a new issue