- Layout improvements for the Chat client - alignment of LanguageSelector
This commit is contained in:
4
common/utils/cache/translation_cache.py
vendored
4
common/utils/cache/translation_cache.py
vendored
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user