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

feat(chat_completions): support partial mode #15

Merged
merged 1 commit into from
May 30, 2024
Merged

feat(chat_completions): support partial mode #15

merged 1 commit into from
May 30, 2024

Conversation

northes
Copy link
Owner

@northes northes commented May 30, 2024

Describe the change

Support partial mode.

Provide Moonshot documentation link

https://platform.moonshot.cn/docs/api/partial#partial-mode

Describe your solution

Add Partial and Name fields to ChatCompletionsMessage struct and test code.

Tests

Add TestPartialMode method in api_chat_completions_test.go, pass.

Additional context

Nothing.

Issue: #14

@northes northes self-assigned this May 30, 2024
Copy link

codecov bot commented May 30, 2024

Codecov Report

Attention: Patch coverage is 75.00000% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 71.08%. Comparing base (12b8194) to head (62e528b).

Files Patch % Lines
api_chat_completions.go 57.14% 2 Missing and 1 partial ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #15      +/-   ##
==========================================
+ Coverage   71.03%   71.08%   +0.04%     
==========================================
  Files          11       11              
  Lines         366      377      +11     
==========================================
+ Hits          260      268       +8     
- Misses         58       60       +2     
- Partials       48       49       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@northes northes merged commit 228a581 into main May 30, 2024
8 checks passed
@northes northes deleted the partial-mode branch May 30, 2024 10:18
@northes northes linked an issue May 30, 2024 that may be closed by this pull request
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.

Support partial mode
1 participant