chore: improve logging

This commit is contained in:
Simon
2026-03-05 16:54:41 +08:00
parent 8bc27414a4
commit 0dacbda9da
3 changed files with 10 additions and 12 deletions

View File

@@ -6,9 +6,7 @@ import * as z from 'zod'
import type { Tool } from './types'
function debug(message: string) {
console.debug(chalk.gray('[LLM]'), message)
}
const debug = console.debug.bind(console, chalk.gray('[LLM]'))
/**
* Convert Zod schema to OpenAI tool format