@rogatio/cli 5.3.2 → 5.5.0
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/node/index.js +7 -2
- package/package.json +1 -1
package/dist/node/index.js
CHANGED
|
@@ -21792,7 +21792,7 @@ function createNativeRuntimeController(options) {
|
|
|
21792
21792
|
try {
|
|
21793
21793
|
const result = await aiClient.complete({
|
|
21794
21794
|
messages: [...meta.messages],
|
|
21795
|
-
model: meta.model,
|
|
21795
|
+
model: meta.model || options.aiProviderConfig?.model || "",
|
|
21796
21796
|
temperature: meta.temperature,
|
|
21797
21797
|
responseFormat: meta.responseFormat
|
|
21798
21798
|
});
|
|
@@ -21838,7 +21838,7 @@ function createNativeRuntimeController(options) {
|
|
|
21838
21838
|
try {
|
|
21839
21839
|
for await (const chunk of aiClient.stream({
|
|
21840
21840
|
messages: [...meta.messages],
|
|
21841
|
-
model: meta.model,
|
|
21841
|
+
model: meta.model || options.aiProviderConfig?.model || "",
|
|
21842
21842
|
temperature: meta.temperature
|
|
21843
21843
|
})) {
|
|
21844
21844
|
return {
|
|
@@ -21997,6 +21997,7 @@ function createNativeHost(options) {
|
|
|
21997
21997
|
preset: options.preset,
|
|
21998
21998
|
fileRoot: options.fileRoot,
|
|
21999
21999
|
...options.mockPort !== void 0 ? { mockPort: options.mockPort } : {},
|
|
22000
|
+
...options.aiProviderConfig !== void 0 ? { aiProviderConfig: options.aiProviderConfig } : {},
|
|
22000
22001
|
...options.clock ? { clock: options.clock } : {}
|
|
22001
22002
|
});
|
|
22002
22003
|
let faucet = null;
|
|
@@ -24797,9 +24798,11 @@ async function runtimeHostCommand(args) {
|
|
|
24797
24798
|
}
|
|
24798
24799
|
const inputPath = positional[0];
|
|
24799
24800
|
if (!inputPath) {
|
|
24801
|
+
const aiProviderConfig2 = await readProviderConfig();
|
|
24800
24802
|
await runNativeHost({
|
|
24801
24803
|
fileRoot: root,
|
|
24802
24804
|
...mockPort !== void 0 ? { mockPort } : {},
|
|
24805
|
+
...aiProviderConfig2 !== null ? { aiProviderConfig: aiProviderConfig2 } : {},
|
|
24803
24806
|
onReady: () => console.error(
|
|
24804
24807
|
"rogatio runtime-host active (deferred, waiting for project)"
|
|
24805
24808
|
)
|
|
@@ -24860,10 +24863,12 @@ async function runtimeHostCommand(args) {
|
|
|
24860
24863
|
console.error("Error: Failed to build runtime preset");
|
|
24861
24864
|
return 2;
|
|
24862
24865
|
}
|
|
24866
|
+
const aiProviderConfig = await readProviderConfig();
|
|
24863
24867
|
await runNativeHost({
|
|
24864
24868
|
preset: normalized.value,
|
|
24865
24869
|
fileRoot: rootDir,
|
|
24866
24870
|
...mockPort !== void 0 ? { mockPort } : {},
|
|
24871
|
+
...aiProviderConfig !== null ? { aiProviderConfig } : {},
|
|
24867
24872
|
onReady: () => console.error("rogatio runtime-host active")
|
|
24868
24873
|
});
|
|
24869
24874
|
return 0;
|
package/package.json
CHANGED