Update error message for missing assistant data in GetAssistant method
- Change error message from "assistant not found" to "the assistant is empty" for improved clarity in the Xun store.
This commit is contained in:
parent
f820e376ab
commit
6edaa712df
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()
|
data := row.ToMap()
|
||||||
if data == nil || len(data) == 0 {
|
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
|
// Parse JSON fields
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue