Skip to content

feat(zhipuai): Add Builder pattern for ZhiPuAiApi #3726

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

Closed
wants to merge 1 commit into from

Conversation

YunKuiLu
Copy link
Contributor

@YunKuiLu YunKuiLu commented Jul 2, 2025

  • Added builder and mutate methods to construct ZhiPuAiApi instances
  • Use more fine-grained code formatter control
  • Allowed custom completionsPath and embeddingsPath
  • Existing constructor marked as Deprecated
  • Added WebClient.Builder parameter
  • Updated integration tests, using Builder pattern to construct ZhiPuAiApi
  • Added Builder unit test

I ran all the updated integration tests locally

@ilayaperumalg
Copy link
Member

@mxsl-gr Could you help with the review please? Thanks!

@mxsl-gr
Copy link
Contributor

mxsl-gr commented Jul 4, 2025

@mxsl-gr Could you help with the review please? Thanks!

no problem

- Added builder and mutate methods to construct ZhiPuAiApi instances
- Use more fine-grained code formatter control
- Allowed custom completionsPath and embeddingsPath
- Existing constructor marked as Deprecated
- Added WebClient.Builder parameter
- Updated integration tests, using Builder pattern to construct ZhiPuAiApi
- Added Builder unit test

Signed-off-by: YunKui Lu <[email protected]>
@YunKuiLu YunKuiLu requested a review from mxsl-gr July 8, 2025 07:18
@YunKuiLu
Copy link
Contributor Author

YunKuiLu commented Jul 9, 2025

@mxsl-gr Thanks for the code review!

Hi @ilayaperumalg , can this PR be merged? I have some follow-up PRs related to Zhipu that may depend on it.

@ilayaperumalg
Copy link
Member

@YunKuiLu Thanks for the PR and @mxsl-gr thanks for the review.

Rebased and merges as d865c9e

@YunKuiLu YunKuiLu deleted the zhipu-builder branch July 9, 2025 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants