feat: add ops trace (#5483)

Co-authored-by: takatost <takatost@gmail.com>
This commit is contained in:
Joe 2024-06-26 17:33:29 +08:00 • committed by GitHub
commit 4e2de638af
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
58 changed files with 3553 additions and 622 deletions

View file

@ -96,7 +96,9 @@ class ConversationService:
# generate conversation name
try:
name = LLMGenerator.generate_conversation_name(app_model.tenant_id, message.query)
name = LLMGenerator.generate_conversation_name(
app_model.tenant_id, message.query, conversation.id, app_model.id
)
conversation.name = name
except:
pass