Skip to content

feat(zhipu-ai): Implement ZhipuProvider for LLM integration #156

feat(zhipu-ai): Implement ZhipuProvider for LLM integration

feat(zhipu-ai): Implement ZhipuProvider for LLM integration #156

Re-run triggered May 4, 2025 15:40
Status Failure
Total duration 18s
Artifacts

pull-request.yml

on: pull_request
Commitlint
11s
Commitlint
Lint
8s
Lint
Build & Test
12s
Build & Test
Check TSDoc Links
6s
Check TSDoc Links
Fit to window
Zoom out
Zoom in

Annotations

4 errors
Check TSDoc Links
Process completed with exit code 1.
Lint
Process completed with exit code 1.
Commitlint
You have commit messages with errors ⧗ input: feat(zhipu-ai): Implement ZhipuProvider for LLM integration The changes in this commit introduce the `ZhipuProvider` class, which implements the `LLMProvider` interface from the `@voltagent/core` package. This provider allows integration with the Zhipu AI API, enabling the use of Zhipu's language models within the Voltagent framework. The key changes include: - Defining the `ZhipuProviderOptions` interface to handle the configuration options for the Zhipu AI provider. - Implementing the `ZhipuProvider` class, which includes methods for generating text, streaming text, generating objects, and streaming objects using the Zhipu AI API. - Providing utility functions like `toMessage` and `createStepFromChunk` to handle the conversion between Voltagent's message format and the Zhipu AI response format. - Implementing the `getModelIdentifier` method to return the model identifier for the Zhipu AI language model. These changes allow the Voltagent framework to leverage the capabilities of the Zhipu AI language models, expanding the available options for developers using the Voltagent platform. ✖ body's lines must not be longer than 100 characters [body-max-line-length] ✖ subject must not be sentence-case, start-case, pascal-case, upper-case [subject-case] ✖ found 2 problems, 0 warnings ⓘ Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint ⧗ input: feat(voltagent): add example for Zhipu AI integration This commit adds a new example for integrating the Zhipu AI language model into a VoltAgent application. The key changes include: 1. Adding a new example directory `examples/with-zhipu-ai` with a detailed README file explaining the setup and usage. 2. Updating the `pnpm-lock.yaml` file to remove unnecessary `dev` flags and ensure consistent dependency versions. 3. Improving the error handling in the `ZhipuProvider` class to call the provided `onError` callback when an error occurs during the API response parsing. These changes aim to provide a comprehensive example for developers to quickly get started with using the Zhipu AI language model within their VoltAgent-powered AI applications. ✖ body's lines must not be longer than 100 characters [body-max-line-length] ✖ found 1 problems, 0 warnings ⓘ Get help: https://github.com/conventional-changelog/commitlint/#what-is-commitlint
Build & Test
Process completed with exit code 1.