oh-my-opencode-kikokikok 2.15.10 → 2.15.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/index.js +1 -1
- package/dist/index.js +12 -3
- package/package.json +1 -1
package/dist/cli/index.js
CHANGED
|
@@ -2253,7 +2253,7 @@ var require_picocolors = __commonJS((exports, module) => {
|
|
|
2253
2253
|
var require_package = __commonJS((exports, module) => {
|
|
2254
2254
|
module.exports = {
|
|
2255
2255
|
name: "oh-my-opencode-kikokikok",
|
|
2256
|
-
version: "2.15.
|
|
2256
|
+
version: "2.15.11",
|
|
2257
2257
|
description: "OpenCode plugin - custom agents (oracle, librarian) and enhanced features",
|
|
2258
2258
|
main: "dist/index.js",
|
|
2259
2259
|
types: "dist/index.d.ts",
|
package/dist/index.js
CHANGED
|
@@ -43786,6 +43786,12 @@ var DEFAULT_EMBEDDING_MODEL = "letta/letta-free";
|
|
|
43786
43786
|
var VALID_PROVIDERS = ["letta", "openai", "openai-proxy"];
|
|
43787
43787
|
var COPILOT_PROXY_ENDPOINT = "http://host.docker.internal:4141/v1";
|
|
43788
43788
|
var COPILOT_PROXY_LOCAL = "http://localhost:4141/v1";
|
|
43789
|
+
function normalizeHandleForLetta(handle) {
|
|
43790
|
+
if (handle.startsWith("openai-proxy/")) {
|
|
43791
|
+
return handle.replace("openai-proxy/", "openai/");
|
|
43792
|
+
}
|
|
43793
|
+
return handle;
|
|
43794
|
+
}
|
|
43789
43795
|
|
|
43790
43796
|
class LettaAdapter {
|
|
43791
43797
|
config;
|
|
@@ -43925,7 +43931,8 @@ class LettaAdapter {
|
|
|
43925
43931
|
}
|
|
43926
43932
|
const configModel = this.config.embeddingModel;
|
|
43927
43933
|
if (configModel) {
|
|
43928
|
-
|
|
43934
|
+
const resolved = await this.resolveModelHandle(configModel, true);
|
|
43935
|
+
this.resolvedEmbeddingModel = normalizeHandleForLetta(resolved);
|
|
43929
43936
|
} else {
|
|
43930
43937
|
const models = await this.getModels();
|
|
43931
43938
|
const hasValidProvider = (handle) => {
|
|
@@ -43936,7 +43943,8 @@ class LettaAdapter {
|
|
|
43936
43943
|
if (validEmbeddingModels.length > 0) {
|
|
43937
43944
|
const preferredName = this.config.preferredEmbeddingModel ?? "text-embedding-3-small";
|
|
43938
43945
|
const preferred = validEmbeddingModels.find((m) => m.name.includes(preferredName));
|
|
43939
|
-
|
|
43946
|
+
const handle = preferred?.handle ?? validEmbeddingModels[0].handle;
|
|
43947
|
+
this.resolvedEmbeddingModel = normalizeHandleForLetta(handle);
|
|
43940
43948
|
} else {
|
|
43941
43949
|
this.resolvedEmbeddingModel = DEFAULT_EMBEDDING_MODEL;
|
|
43942
43950
|
}
|
|
@@ -43949,7 +43957,8 @@ class LettaAdapter {
|
|
|
43949
43957
|
}
|
|
43950
43958
|
const configModel = this.config.llmModel;
|
|
43951
43959
|
if (configModel) {
|
|
43952
|
-
|
|
43960
|
+
const resolved = await this.resolveModelHandle(configModel, false);
|
|
43961
|
+
this.resolvedLlmModel = normalizeHandleForLetta(resolved);
|
|
43953
43962
|
} else {
|
|
43954
43963
|
this.resolvedLlmModel = DEFAULT_LLM_MODEL;
|
|
43955
43964
|
}
|