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

Open
wants to merge 1 commit into
base: main
Choose a base branch
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

- 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 <luyunkui95@gmail.com>
@ilayaperumalg
Copy link
Member

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

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.

2 participants