Skip to content

Commit

Permalink
refactor: update model and clean script comments ✨
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Dec 9, 2024
1 parent abafab7 commit b816815
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
3 changes: 1 addition & 2 deletions packages/cli/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ export async function run(

const filename =
typeof __filename === "undefined"
? // ignore esbuild warning
join(dirname(fileURLToPath(import.meta.url)), "genaiscript.cjs")
? join(dirname(fileURLToPath(import.meta.url)), "genaiscript.cjs") // ignore esbuild warning
: __filename
const worker = new Worker(filename, { workerData, name: options?.label })
return new Promise((resolve, reject) => {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export const DEFAULT_SMALL_MODEL_CANDIDATES = [
"azure_serverless:gpt-4o-mini",
DEFAULT_SMALL_MODEL,
"google:gemini-1.5-flash-002",
"anthropic:claude-instant-1",
"anthropic:claude-instant-1.2",
"mistral:mistral-small-latest",
"github:gpt-4o-mini",
"client:gpt-4-mini",
Expand Down
3 changes: 1 addition & 2 deletions packages/sample/genaisrc/summarize-cached.genai.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
script({
title: "summarize all files",
model: "small",
title: "summarize all files with caching",
files: "src/rag/markdown.md",
tests: [
{
Expand Down

0 comments on commit b816815

Please sign in to comment.