Merge pull request #898 from trheyi/main
Update error message for missing assistant data in GetAssistant method
This commit is contained in:
commit
c5f636df04
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue