mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-03-28 14:56:24 +01:00
lil fixes: model names and params, imports
This commit is contained in:
parent
8277c23a2c
commit
3a780ef759
7 changed files with 8 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "Freeguy",
|
||||
|
||||
"model": "groq/llama-3.1-70b-versatile",
|
||||
"model": "groq/llama-3.3-70b-versatile",
|
||||
|
||||
"max_tokens": 8000
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"name": "LLama",
|
||||
|
||||
"model": "groq/llama-3.1-70b-versatile",
|
||||
"model": "groq/llama-3.3-70b-versatile",
|
||||
|
||||
"max_tokens": 4000,
|
||||
|
||||
|
|
|
@ -1267,7 +1267,7 @@ export async function tillAndSow(bot, x, y, z, seedType=null) {
|
|||
* @returns {Promise<boolean>} true if the ground was tilled, false otherwise.
|
||||
* @example
|
||||
* let position = world.getPosition(bot);
|
||||
* await skills.till(bot, position.x, position.y - 1, position.x);
|
||||
* await skills.tillAndSow(bot, position.x, position.y - 1, position.x, "wheat");
|
||||
**/
|
||||
x = Math.round(x);
|
||||
y = Math.round(y);
|
||||
|
|
|
@ -5,7 +5,7 @@ import { getKey } from '../utils/keys.js';
|
|||
export class Claude {
|
||||
constructor(model_name, url, params) {
|
||||
this.model_name = model_name;
|
||||
this.params = params;
|
||||
this.params = params || {};
|
||||
|
||||
let config = {};
|
||||
if (url)
|
||||
|
|
|
@ -75,7 +75,7 @@ export class Gemini {
|
|||
const text = response.text();
|
||||
console.log('Received.');
|
||||
|
||||
return text.slice(0, idx);
|
||||
return text;
|
||||
}
|
||||
|
||||
async embed(text) {
|
||||
|
|
|
@ -7,7 +7,7 @@ export class GroqCloudAPI {
|
|||
constructor(model_name, url, params) {
|
||||
this.model_name = model_name;
|
||||
this.url = url;
|
||||
this.params = params;
|
||||
this.params = params || {};
|
||||
// ReplicateAPI theft :3
|
||||
if (this.url) {
|
||||
|
||||
|
|
|
@ -2,6 +2,7 @@ import { readFileSync, mkdirSync, writeFileSync} from 'fs';
|
|||
import { Examples } from '../utils/examples.js';
|
||||
import { getCommandDocs } from '../agent/commands/index.js';
|
||||
import { getSkillDocs } from '../agent/library/index.js';
|
||||
import { SkillLibrary } from "../agent/library/skill_library.js";
|
||||
import { stringifyTurns } from '../utils/text.js';
|
||||
import { getCommand } from '../agent/commands/index.js';
|
||||
import settings from '../../settings.js';
|
||||
|
@ -18,7 +19,7 @@ import { HuggingFace } from './huggingface.js';
|
|||
import { Qwen } from "./qwen.js";
|
||||
import { Grok } from "./grok.js";
|
||||
import { DeepSeek } from './deepseek.js';
|
||||
import {SkillLibrary} from "./library/skill_library.js";
|
||||
|
||||
export class Prompter {
|
||||
constructor(agent, fp) {
|
||||
this.agent = agent;
|
||||
|
|
Loading…
Add table
Reference in a new issue