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: get header from sendRequestRaw #694

Merged
merged 2 commits into from
Apr 5, 2024

Conversation

WqyJh
Copy link
Contributor

@WqyJh WqyJh commented Mar 27, 2024

Add response header to CreateSpeech and GetFileContent.

Replace io.ReadCloser with RawResponse, which contains an io.ReadCloser and a httpHeader. The RawResponse can be treated as io.ReadCloser therefore keeping backwards compatibility.

Copy link

codecov bot commented Mar 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.46%. Comparing base (0925563) to head (1b81ef8).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #694      +/-   ##
==========================================
- Coverage   98.46%   98.46%   -0.01%     
==========================================
  Files          24       24              
  Lines        1366     1365       -1     
==========================================
- Hits         1345     1344       -1     
  Misses         15       15              
  Partials        6        6              

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

@WqyJh
Copy link
Contributor Author

WqyJh commented Apr 5, 2024

Hi @sashabaranov, would you please checkout this PR?

@sashabaranov
Copy link
Owner

@WqyJh sorry for taking so long and thank you for the PR! Looks good to me!

@sashabaranov sashabaranov merged commit 2646bce into sashabaranov:master Apr 5, 2024
3 checks passed
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

2 participants