@openagents-org/agent-launcher 0.2.75 → 0.2.77
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/package.json +1 -1
- package/src/adapters/openclaw.js +4 -1
package/package.json
CHANGED
package/src/adapters/openclaw.js
CHANGED
|
@@ -257,6 +257,7 @@ class OpenClawAdapter extends BaseAdapter {
|
|
|
257
257
|
const proc = spawn(spawnBin, spawnArgs, {
|
|
258
258
|
stdio: ['ignore', 'pipe', stderrFd],
|
|
259
259
|
env: spawnEnv,
|
|
260
|
+
cwd: this.workingDir || process.env.HOME || '/',
|
|
260
261
|
timeout: 600000,
|
|
261
262
|
windowsHide: true,
|
|
262
263
|
});
|
|
@@ -414,7 +415,9 @@ class OpenClawAdapter extends BaseAdapter {
|
|
|
414
415
|
*/
|
|
415
416
|
static configureNativeAuth(env) {
|
|
416
417
|
const apiKey = env.LLM_API_KEY;
|
|
417
|
-
|
|
418
|
+
// Strip /chat/completions suffix — OpenClaw appends it internally
|
|
419
|
+
const rawUrl = env.LLM_BASE_URL || 'https://api.openai.com/v1';
|
|
420
|
+
const baseUrl = rawUrl.replace(/\/chat\/completions\/?$/, '');
|
|
418
421
|
const model = env.LLM_MODEL || 'gpt-4o';
|
|
419
422
|
if (!apiKey) return;
|
|
420
423
|
|