- Layout improvements for the Chat client - alignment of LanguageSelector

This commit is contained in:
Josako
2025-07-23 22:23:04 +02:00
parent 32df3d0589
commit fc3cae1986
5 changed files with 7 additions and 58 deletions

View File

@@ -73,7 +73,7 @@ class TranslationCacheHandler(CacheHandler[TranslationCache]):
'prompt_tokens': translation.prompt_tokens,
'completion_tokens': translation.completion_tokens,
'time_elapsed': 0,
'interaction_type': 'LLM'
'interaction_type': 'TRANSLATION-CACHE'
}
current_event.log_llm_metrics(metrics)
@@ -121,7 +121,7 @@ class TranslationCacheHandler(CacheHandler[TranslationCache]):
'prompt_tokens': existing_translation.prompt_tokens,
'completion_tokens': existing_translation.completion_tokens,
'time_elapsed': 0,
'interaction_type': 'TRANSLATION'
'interaction_type': 'TRANSLATION-DB'
}
current_event.log_llm_metrics(metrics)
db.session.commit()