v2.2-paseo-providers: Paseo provider stack + v2.2.1 pane-scoped chat fixes
Ship Paseo-equivalent provider snapshot, AgentComposerBar, ACP dispatch rewrite with streaming/persist, permission prompts, and agent commands. Follow-up: pane-scoped chat resolution, CoderMessageList tool timeline, WS user-delta replace, and inference orphan tool_call stripping. Archive openspec v2-2; update CHANGELOG and CURRENT. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
21
apps/coder/src/services/qwen-settings.ts
Normal file
21
apps/coder/src/services/qwen-settings.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import { readFile } from 'node:fs/promises';
|
||||
import { join } from 'node:path';
|
||||
import { homedir } from 'node:os';
|
||||
import type { ProviderModel } from './provider-types.js';
|
||||
|
||||
const QWEN_SETTINGS_PATH = join(homedir(), '.qwen', 'settings.json');
|
||||
|
||||
export async function readQwenSettingsModels(): Promise<ProviderModel[]> {
|
||||
try {
|
||||
const raw = await readFile(QWEN_SETTINGS_PATH, 'utf8');
|
||||
if (!raw.trim()) return [];
|
||||
const settings = JSON.parse(raw) as {
|
||||
modelProviders?: { openai?: Array<{ id: string }> };
|
||||
};
|
||||
const openaiModels = settings?.modelProviders?.openai;
|
||||
if (!Array.isArray(openaiModels)) return [];
|
||||
return openaiModels.map((m) => ({ id: m.id, label: m.id }));
|
||||
} catch {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user