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

[feature] support ai api with zhipu ai #2120

Merged
merged 22 commits into from
Jun 25, 2024
Merged

[feature] support ai api with zhipu ai #2120

merged 22 commits into from
Jun 25, 2024

Conversation

Yanshuming1
Copy link
Member

add ai feature

@zqr10159
Copy link
Member

Can you introduce it in detail?

@Yanshuming1
Copy link
Member Author

Can you introduce it in detail?

By configuring AI config in application.yml.yml, users can directly access ZhipuAI through http, and the back end streams back with sse

@Yanshuming1
Copy link
Member Author

I will supplement the document later

@zqr10159 zqr10159 requested a review from tomsun28 June 23, 2024 08:04
@tomsun28 tomsun28 added this to the 1.6.1 milestone Jun 24, 2024
@tomsun28 tomsun28 changed the title [feature] add zhipuAI [feature] support ai api with zhipu ai Jun 24, 2024
Copy link
Contributor

@tomsun28 tomsun28 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 lgtm thanks.

Comment on lines +109 to +115

<!--webflux-->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-webflux</artifactId>
</dependency>

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi, due we add new thrid denpedency, we need update the license doc here. https://github.com/apache/hertzbeat/tree/master/material/licenses

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any tutorial documentation on how to do that


@Override
public String getType() {
return "0";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi, suggest use string or enum zhipu instead of number 0

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It already is.

@tomsun28 tomsun28 merged commit fa0e9ef into apache:master Jun 25, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Development

Successfully merging this pull request may close these issues.

3 participants