opencode-plugin-mimic 0.1.9 → 0.1.10
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/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2478,8 +2478,10 @@ async function analyzePatternsWithLLM(ctx, input, config) {
|
|
|
2478
2478
|
return analyzePatterns(input);
|
|
2479
2479
|
}
|
|
2480
2480
|
const observerConfig = "observer" in config ? config.observer : void 0;
|
|
2481
|
-
const
|
|
2482
|
-
const
|
|
2481
|
+
const rawModelId = observerConfig?.model || DEFAULT_OBSERVER_MODEL;
|
|
2482
|
+
const hasSlash = rawModelId.includes("/");
|
|
2483
|
+
const extractedProvider = hasSlash ? rawModelId.split("/")[0] : void 0;
|
|
2484
|
+
const modelId = hasSlash ? rawModelId.split("/").slice(1).join("/") : rawModelId;
|
|
2483
2485
|
const providerId = observerConfig?.provider || extractedProvider || DEFAULT_OBSERVER_PROVIDER;
|
|
2484
2486
|
try {
|
|
2485
2487
|
const prompt = buildObserverPrompt(input);
|