fix migration
This commit is contained in:
@@ -7,7 +7,7 @@ from typing import Any
|
||||
from sqlalchemy import select
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
from app.config import Settings, get_settings, resolve_vision_model
|
||||
from app.config import Settings, get_settings, resolve_extract_model, resolve_vision_model
|
||||
from app.db.models import AssistantState
|
||||
|
||||
SETTING_KEYS = (
|
||||
@@ -69,6 +69,8 @@ class SettingsService:
|
||||
return self._default_for(key)
|
||||
if key == "openrouter_vision_model":
|
||||
return resolve_vision_model(raw.strip())
|
||||
if key == "memory_extract_model":
|
||||
return resolve_extract_model(raw.strip())
|
||||
return raw
|
||||
|
||||
def snapshot(self) -> dict[str, Any]:
|
||||
|
||||
Reference in New Issue
Block a user