Merge pull request #898 from trheyi/main

Update error message for missing assistant data in GetAssistant method
This commit is contained in:
Max 2025-03-21 18:57:49 +08:00 committed by GitHub
commit c5f636df04
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1194,7 +1194,7 @@ func (conv *Xun) GetAssistant(assistantID string) (map[string]interface{}, error
data := row.ToMap()
if data == nil || len(data) == 0 {
return nil, fmt.Errorf("assistant %s not found", assistantID)
return nil, fmt.Errorf("the assistant %s is empty", assistantID)
}
// Parse JSON fields