Add Ollama model selector dropdown and improve automatic tool detection
- Add `listModels()`, `setModel()`, and `getModel()` methods to `OllamaClient` - Populate model dropdown in chat view from `/api/tags` endpoint - Synchronize model selection across main and agent clients - Detect user intent for vault operations from message content - Expand action phrase matching for `shouldAutoRunReadTools()` - Streamline retry logic and suppress "Let me..." text with actual tool calls - Improve fallback search query generation by removing more filler words
This commit is contained in:
+19
@@ -314,6 +314,25 @@
|
||||
border-color: var(--interactive-accent);
|
||||
}
|
||||
|
||||
/* Model Selector */
|
||||
.ollama-model-selector {
|
||||
padding: var(--size-4-1) var(--size-4-2);
|
||||
border-radius: var(--ollama-radius);
|
||||
border: 1px solid var(--ollama-border);
|
||||
background-color: var(--background-modifier-form-field);
|
||||
color: var(--text-normal);
|
||||
font-size: var(--font-ui-small);
|
||||
cursor: pointer;
|
||||
max-width: 10rem;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.ollama-model-selector:focus {
|
||||
outline: none;
|
||||
border-color: var(--interactive-accent);
|
||||
}
|
||||
|
||||
/* Chat History Selector */
|
||||
.ollama-history-selector {
|
||||
padding: var(--size-4-1) var(--size-4-2);
|
||||
|
||||
Reference in New Issue
Block a user