agent-mp 0.4.9 → 0.4.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.
@@ -235,8 +235,7 @@ export async function fetchQwenModels() {
235
235
  if (!token)
236
236
  return [];
237
237
  try {
238
- const host = token.resourceUrl ? `https://${token.resourceUrl}` : 'https://chat.qwen.ai';
239
- const res = await fetch(`${host}/api/models`, {
238
+ const res = await fetch('https://chat.qwen.ai/api/models', {
240
239
  headers: { Authorization: `Bearer ${token.accessToken}` },
241
240
  });
242
241
  if (!res.ok)
@@ -253,8 +252,7 @@ export async function getQwenAccessToken() {
253
252
  return token?.accessToken || null;
254
253
  }
255
254
  async function callQwenAPIWithToken(token, prompt, model, onData) {
256
- const host = token.resourceUrl ? `https://${token.resourceUrl}` : 'https://chat.qwen.ai';
257
- const baseUrl = `${host}/api/v1`;
255
+ const baseUrl = 'https://chat.qwen.ai/api/v1';
258
256
  const useStream = !!onData;
259
257
  const response = await fetch(`${baseUrl}/chat/completions`, {
260
258
  method: 'POST',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-mp",
3
- "version": "0.4.9",
3
+ "version": "0.4.10",
4
4
  "description": "Deterministic multi-agent CLI orchestrator — plan, code, review",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",