@openagents-org/agent-launcher 0.2.74 → 0.2.76
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 +3 -1
- package/src/index.js +8 -0
package/package.json
CHANGED
package/src/adapters/openclaw.js
CHANGED
|
@@ -414,7 +414,9 @@ class OpenClawAdapter extends BaseAdapter {
|
|
|
414
414
|
*/
|
|
415
415
|
static configureNativeAuth(env) {
|
|
416
416
|
const apiKey = env.LLM_API_KEY;
|
|
417
|
-
|
|
417
|
+
// Strip /chat/completions suffix — OpenClaw appends it internally
|
|
418
|
+
const rawUrl = env.LLM_BASE_URL || 'https://api.openai.com/v1';
|
|
419
|
+
const baseUrl = rawUrl.replace(/\/chat\/completions\/?$/, '');
|
|
418
420
|
const model = env.LLM_MODEL || 'gpt-4o';
|
|
419
421
|
if (!apiKey) return;
|
|
420
422
|
|
package/src/index.js
CHANGED
|
@@ -106,6 +106,14 @@ class AgentConnector {
|
|
|
106
106
|
|
|
107
107
|
saveAgentEnv(agentType, env) {
|
|
108
108
|
this.env.save(agentType, env);
|
|
109
|
+
// Configure native auth for agents that need it (e.g. OpenClaw auth-profiles.json)
|
|
110
|
+
try {
|
|
111
|
+
if (agentType === 'openclaw') {
|
|
112
|
+
const OpenClawAdapter = require('./adapters/openclaw');
|
|
113
|
+
const saved = this.env.load(agentType);
|
|
114
|
+
OpenClawAdapter.configureNativeAuth(saved);
|
|
115
|
+
}
|
|
116
|
+
} catch {}
|
|
109
117
|
return { success: true };
|
|
110
118
|
}
|
|
111
119
|
|