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:
Max 2025-03-21 18:36:59 +08:00
parent f820e376ab
commit 6edaa712df

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