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

add restful completions v1 test case #1416

Merged
merged 12 commits into from
Apr 16, 2024

Conversation

ZhoujhZoe
Copy link
Contributor

add restful completions v1 test case

@ZhoujhZoe
Copy link
Contributor Author

Copy link
Collaborator

@zhulinJulia24 zhulinJulia24 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Collaborator

@RunningLeon RunningLeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

temperature=0.01):
completion_tokens = item['usage']['completion_tokens']
assert completion_tokens > 0
assert completion_tokens <= 17
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个用例看起来是使用基座模型搭建了服务。
completion_tokens 的校验可以严苛一些: assert 16 <= completion_tokens <= 17

@lvhan028 lvhan028 merged commit bfed508 into InternLM:main Apr 16, 2024
4 checks passed
@zhulinJulia24 zhulinJulia24 deleted the test_completions_v1 branch April 26, 2024 05:30
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

Successfully merging this pull request may close these issues.

None yet

4 participants