fix(lint): remove unused model variable and get_setting import in chat.py
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -9,7 +9,6 @@ from fabledassistant.models.conversation import Conversation, Message
|
|||||||
from fabledassistant.config import Config
|
from fabledassistant.config import Config
|
||||||
from fabledassistant.services.llm import generate_completion
|
from fabledassistant.services.llm import generate_completion
|
||||||
from fabledassistant.services.notes import create_note
|
from fabledassistant.services.notes import create_note
|
||||||
from fabledassistant.services.settings import get_setting
|
|
||||||
|
|
||||||
logger = logging.getLogger(__name__)
|
logger = logging.getLogger(__name__)
|
||||||
|
|
||||||
@@ -223,9 +222,6 @@ async def save_response_as_note(user_id: int, message_id: int) -> dict:
|
|||||||
# Generate title via LLM using the assistant message content
|
# Generate title via LLM using the assistant message content
|
||||||
title = ""
|
title = ""
|
||||||
if conv:
|
if conv:
|
||||||
model = conv.model or await get_setting(
|
|
||||||
user_id, "default_model", Config.OLLAMA_MODEL
|
|
||||||
)
|
|
||||||
try:
|
try:
|
||||||
prompt_messages = [
|
prompt_messages = [
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user