From c23b1661782ece8cc5ddb11f98edd9ddcb5fdf6d Mon Sep 17 00:00:00 2001 From: celeste Date: Thu, 6 Jul 2023 18:45:16 -0400 Subject: [PATCH] use right tokenizer for g4b --- main.ts | 2 +- manifest.json | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/main.ts b/main.ts index 7dc0c89..d4f3f83 100644 --- a/main.ts +++ b/main.ts @@ -1212,7 +1212,7 @@ export default class LoomPlugin extends Plugin { } trimOpenAIPrompt(prompt: string) { - const cl100kModels = ["gpt-4-32k", "gpt-4-0314", "gpt-4-32k-0314", "gpt-3.5-turbo", "gpt-3.5-turbo-0301"]; + const cl100kModels = ["gpt-4-32k", "gpt-4-0314", "gpt-4-32k-0314", "gpt-3.5-turbo", "gpt-3.5-turbo-0301", "gpt-4-base"]; const p50kModels = ["text-davinci-003", "text-davinci-002", "code-davinci-002", "code-davinci-001", "code-cushman-002", "code-cushman-001", "davinci-codex", "cushman-codex"]; // const r50kModels = ["text-davinci-001", "text-curie-001", "text-babbage-001", "text-ada-001", "davinci", "curie", "babbage", "ada"]; diff --git a/manifest.json b/manifest.json index d17ac83..3f89ff5 100644 --- a/manifest.json +++ b/manifest.json @@ -1,7 +1,7 @@ { "id": "loom", "name": "Loom", - "version": "1.14.1", + "version": "1.14.2", "minAppVersion": "0.15.0", "description": "Loom in Obsidian", "author": "celeste", diff --git a/package.json b/package.json index f42f99d..9b627bc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "obsidian-loom", - "version": "1.14.1", + "version": "1.14.2", "description": "Loom in Obsidian", "main": "main.js", "scripts": {