mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-26 17:51:54 +01:00
Tiny nits
This commit is contained in:
parent
01e6e9a2ba
commit
c43c2320e7
@ -440,14 +440,14 @@ def get_llm_max_tokens(
|
||||
|
||||
if "max_input_tokens" in model_obj:
|
||||
max_tokens = model_obj["max_input_tokens"]
|
||||
logger.info(
|
||||
logger.debug(
|
||||
f"Max tokens for {model_name}: {max_tokens} (from max_input_tokens)"
|
||||
)
|
||||
return max_tokens
|
||||
|
||||
if "max_tokens" in model_obj:
|
||||
max_tokens = model_obj["max_tokens"]
|
||||
logger.info(f"Max tokens for {model_name}: {max_tokens} (from max_tokens)")
|
||||
logger.debug(f"Max tokens for {model_name}: {max_tokens} (from max_tokens)")
|
||||
return max_tokens
|
||||
|
||||
logger.error(f"No max tokens found for LLM: {model_name}")
|
||||
|
@ -185,7 +185,6 @@ def get_chat_session(
|
||||
user: User | None = Depends(current_chat_accesssible_user),
|
||||
db_session: Session = Depends(get_session),
|
||||
) -> ChatSessionDetailResponse:
|
||||
print("get_chat_session called")
|
||||
user_id = user.id if user is not None else None
|
||||
try:
|
||||
chat_session = get_chat_session_by_id(
|
||||
|
Loading…
x
Reference in New Issue
Block a user