Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java sdk ChatResponse getFlag返回Integer, 默认返回null,而不是0 #508

Closed
cjwang666 opened this issue May 9, 2024 · 2 comments
Closed

Comments

@cjwang666
Copy link

System Info

Java sdk 0.0.4

Reproduction

  1. 正常调用chat功能,
  2. 检查返回的flag ,ChatResponse getFlag。如果这个时候,使用flag.toString(),会抛出空指针错误。
@Dobiichi-Origami
Copy link
Collaborator

@Azure99 TAL

@Azure99
Copy link
Collaborator

Azure99 commented May 9, 2024

这个的官方文档有些问题,后面会修正,可以按照下面的方式判断:
如果没有异常,返回null;当出现错误时才返回非null

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants