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

fix: Make CustomRequestConfig properties partially picked #235

Closed
wants to merge 1 commit into from

Conversation

ZhongpinWang
Copy link
Contributor

@ZhongpinWang ZhongpinWang commented Oct 22, 2024

Context

AI/gen-ai-hub-sdk-js-backlog#ISSUENUMBER.

Typescript complains the following code before:

customRequestConfig = { ...customRequestConfig, somePropery: 'someValue' };

Add Partial<...> for CustomRequestConfig. Otherwise, properties are picked and required.

Definition of Done

  • Code is tested (Unit, E2E)
  • Error handling created / updated & covered by the tests above
  • Documentation updated
  • (Optional) Aligned changes with the Java SDK
  • (Optional) Release notes updated

@ZhongpinWang ZhongpinWang changed the title fix: make CustomRequestConfig properties partially picked fix: Make CustomRequestConfig properties partially picked Oct 22, 2024
@ZhongpinWang
Copy link
Contributor Author

After debugging with @deekshas8 , this seems to be a weird cache issue. Now it is gone.. Closing this PR.

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.

1 participant