@pellux/goodvibes-sdk 0.21.7 → 0.21.8
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.
|
@@ -74,7 +74,7 @@ export function createCompanionProviderAdapter(providerRegistry) {
|
|
|
74
74
|
// Resolve the bare model id from the registry's ModelDefinition.
|
|
75
75
|
// options.model is the registry key (e.g. "inception:mercury-2"); provider.chat()
|
|
76
76
|
// needs just the bare id (e.g. "mercury-2") — upstream compat APIs reject the prefix.
|
|
77
|
-
const
|
|
77
|
+
const bareModelId = (() => {
|
|
78
78
|
const modelRegistry = providerRegistry.listModels();
|
|
79
79
|
const def = options.model
|
|
80
80
|
? (options.provider
|
|
@@ -99,7 +99,7 @@ export function createCompanionProviderAdapter(providerRegistry) {
|
|
|
99
99
|
resolve = null;
|
|
100
100
|
};
|
|
101
101
|
const chatPromise = provider.chat({
|
|
102
|
-
model:
|
|
102
|
+
model: bareModelId,
|
|
103
103
|
messages: messages.map((m) => ({ role: m.role, content: m.content })),
|
|
104
104
|
systemPrompt: options.systemPrompt ?? undefined,
|
|
105
105
|
signal: options.abortSignal,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { readFileSync } from 'node:fs';
|
|
2
2
|
import { join } from 'node:path';
|
|
3
|
-
let version = '0.21.
|
|
3
|
+
let version = '0.21.8';
|
|
4
4
|
try {
|
|
5
5
|
const pkg = JSON.parse(readFileSync(join(import.meta.dir, '..', '..', 'package.json'), 'utf-8'));
|
|
6
6
|
version = pkg.version ?? version;
|