lil fixes: model names and params, imports

This commit is contained in:
MaxRobinsonTheGreat 2025-02-05 15:14:33 -06:00
parent 8277c23a2c
commit 3a780ef759
7 changed files with 8 additions and 7 deletions

View file

@ -1,7 +1,7 @@
{ {
"name": "Freeguy", "name": "Freeguy",
"model": "groq/llama-3.1-70b-versatile", "model": "groq/llama-3.3-70b-versatile",
"max_tokens": 8000 "max_tokens": 8000
} }

View file

@ -1,7 +1,7 @@
{ {
"name": "LLama", "name": "LLama",
"model": "groq/llama-3.1-70b-versatile", "model": "groq/llama-3.3-70b-versatile",
"max_tokens": 4000, "max_tokens": 4000,

View file

@ -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. * @returns {Promise<boolean>} true if the ground was tilled, false otherwise.
* @example * @example
* let position = world.getPosition(bot); * 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); x = Math.round(x);
y = Math.round(y); y = Math.round(y);

View file

@ -5,7 +5,7 @@ import { getKey } from '../utils/keys.js';
export class Claude { export class Claude {
constructor(model_name, url, params) { constructor(model_name, url, params) {
this.model_name = model_name; this.model_name = model_name;
this.params = params; this.params = params || {};
let config = {}; let config = {};
if (url) if (url)

View file

@ -75,7 +75,7 @@ export class Gemini {
const text = response.text(); const text = response.text();
console.log('Received.'); console.log('Received.');
return text.slice(0, idx); return text;
} }
async embed(text) { async embed(text) {

View file

@ -7,7 +7,7 @@ export class GroqCloudAPI {
constructor(model_name, url, params) { constructor(model_name, url, params) {
this.model_name = model_name; this.model_name = model_name;
this.url = url; this.url = url;
this.params = params; this.params = params || {};
// ReplicateAPI theft :3 // ReplicateAPI theft :3
if (this.url) { if (this.url) {

View file

@ -2,6 +2,7 @@ import { readFileSync, mkdirSync, writeFileSync} from 'fs';
import { Examples } from '../utils/examples.js'; import { Examples } from '../utils/examples.js';
import { getCommandDocs } from '../agent/commands/index.js'; import { getCommandDocs } from '../agent/commands/index.js';
import { getSkillDocs } from '../agent/library/index.js'; import { getSkillDocs } from '../agent/library/index.js';
import { SkillLibrary } from "../agent/library/skill_library.js";
import { stringifyTurns } from '../utils/text.js'; import { stringifyTurns } from '../utils/text.js';
import { getCommand } from '../agent/commands/index.js'; import { getCommand } from '../agent/commands/index.js';
import settings from '../../settings.js'; import settings from '../../settings.js';
@ -18,7 +19,7 @@ import { HuggingFace } from './huggingface.js';
import { Qwen } from "./qwen.js"; import { Qwen } from "./qwen.js";
import { Grok } from "./grok.js"; import { Grok } from "./grok.js";
import { DeepSeek } from './deepseek.js'; import { DeepSeek } from './deepseek.js';
import {SkillLibrary} from "./library/skill_library.js";
export class Prompter { export class Prompter {
constructor(agent, fp) { constructor(agent, fp) {
this.agent = agent; this.agent = agent;