Add OpenRouter chat provider; fix Windows load errors (0.17.0).
- OpenRouter as an alternative chat provider: server-side API key (settings.json or OPENROUTER_API_KEY), model list with vision marks and filter, SSE streaming, images as data URLs. Memory embeddings stay on Ollama; park/warm LLM are no-ops for the remote provider. - AssistentSaveKnowledgeAttach: JArray param is not supported by SwarmUI API reflection and aborted registration of every later API call; use string[]. - SQLite bootstrap: preload native e_sqlite3 for the current OS/arch (win/osx/linux) and resolve DllImport to it. - settings.json: shared-read + atomic write with retry to avoid Windows sharing violations. - csproj: fix MSB4012 in the native SQLite copy target. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
f2b92e96ca
commit
d67f5e396e
@@ -33,7 +33,7 @@ public partial class SwarmAssistentExtension : Extension
|
||||
ExtensionAuthor = "mrleo1nid";
|
||||
Description = "Collaborative Krea 2 assistant: Ollama chat, persona presets, vector memory, model cards, Generate loop.";
|
||||
License = "MIT";
|
||||
Version = "0.16.1";
|
||||
Version = "0.17.0";
|
||||
Tags = ["tabs", "ui", "llm", "ollama", "krea", "inpaint", "memory", "knowledge", "heard", "books"];
|
||||
}
|
||||
|
||||
@@ -46,6 +46,8 @@ public partial class SwarmAssistentExtension : Extension
|
||||
API.RegisterAPICall(AssistentListPersonas, false, PermUse);
|
||||
API.RegisterAPICall(AssistentGetConfig, false, PermUse);
|
||||
API.RegisterAPICall(AssistentSaveSettings, true, PermUse);
|
||||
API.RegisterAPICall(AssistentGetProvider, false, PermUse);
|
||||
API.RegisterAPICall(AssistentSetProvider, true, PermUse);
|
||||
API.RegisterAPICall(AssistentListInventory, false, PermUse);
|
||||
API.RegisterAPICall(AssistentChat, true, PermUse);
|
||||
API.RegisterAPICall(AssistentChatWS, true, PermUse);
|
||||
@@ -81,7 +83,7 @@ public partial class SwarmAssistentExtension : Extension
|
||||
API.RegisterAPICall(AssistentForgetUserPref, true, PermUse);
|
||||
API.RegisterAPICall(AssistentClearUserPrefs, true, PermUse);
|
||||
API.RegisterAPICall(AssistentClearMemory, true, PermUse);
|
||||
Logs.Init("Swarm Assistent extension loaded (0.16.1 knowledge books hub)");
|
||||
Logs.Init("Swarm Assistent extension loaded (0.17.0 OpenRouter provider)");
|
||||
}
|
||||
|
||||
int CfgInt(string key, int fallback)
|
||||
|
||||
Reference in New Issue
Block a user