mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-17 02:04:05 +00:00
Add ollama dependency and dialog backdrop blur
- Add ollama package to web-ui dependencies for ModelSelector - Add backdrop blur to SettingsDialog (bg-black/50 backdrop-blur-sm) - Update mini-lit to 0.1.9 for backdropClassName prop support - Fix TypeScript errors in ModelSelector (ollama import, parameter types) - Add backward compatibility methods to SessionsStore (saveSession, loadSession, getLatestSessionId)
This commit is contained in:
parent
db34ef01bf
commit
91c1dc6475
10 changed files with 133 additions and 70 deletions
|
|
@ -101,7 +101,7 @@ export class ModelSelector extends DialogBase {
|
|||
|
||||
// Fetch details for each model and convert to Model format
|
||||
const ollamaModelPromises: Promise<Model<any> | null>[] = models
|
||||
.map(async (model) => {
|
||||
.map(async (model: any) => {
|
||||
try {
|
||||
// Get model details
|
||||
const details = await ollama.show({
|
||||
|
|
@ -144,7 +144,7 @@ export class ModelSelector extends DialogBase {
|
|||
return null;
|
||||
}
|
||||
})
|
||||
.filter((m) => m !== null);
|
||||
.filter((m: any) => m !== null);
|
||||
|
||||
const results = await Promise.all(ollamaModelPromises);
|
||||
this.ollamaModels = results.filter((m): m is Model<any> => m !== null);
|
||||
|
|
|
|||
|
|
@ -179,6 +179,7 @@ export class SettingsDialog extends LitElement {
|
|||
},
|
||||
width: "min(1000px, 90vw)",
|
||||
height: "min(800px, 90vh)",
|
||||
backdropClassName: "bg-black/50 backdrop-blur-sm",
|
||||
children: html`
|
||||
${DialogContent({
|
||||
className: "h-full p-6",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue