mirror of
https://github.com/open-jarvis/OpenJarvis.git
synced 2026-07-27 21:05:34 +00:00
feat: rewrite agent wizard — 2-step flow with smart defaults
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
e4466146ce
commit
cbabcd4a8f
@@ -100,6 +100,12 @@ export async function fetchModels(): Promise<ModelInfo[]> {
|
||||
return data.data || [];
|
||||
}
|
||||
|
||||
export async function fetchRecommendedModel(): Promise<{ model: string; reason: string }> {
|
||||
const res = await fetch(`${getBase()}/v1/recommended-model`);
|
||||
if (!res.ok) return { model: '', reason: 'Failed to fetch' };
|
||||
return res.json();
|
||||
}
|
||||
|
||||
export async function pullModel(modelName: string): Promise<void> {
|
||||
// In Tauri, go through the Rust backend directly (avoids CORS / timeout
|
||||
// issues with long model downloads via fetch).
|
||||
|
||||
+274
-667
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user