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

feat: add gpts chat api #938

Merged
merged 1 commit into from
Mar 28, 2024
Merged

feat: add gpts chat api #938

merged 1 commit into from
Mar 28, 2024

Conversation

Abirdcfly
Copy link
Collaborator

@Abirdcfly Abirdcfly commented Mar 27, 2024

What type of PR is this?

/kind bug
/kind feature

What this PR does / why we need it

  1. add showRespInfo / showRetrievalInfo / showNextGuide / enableUploadFile / notReadyReasonCode to gpts
  2. add /gpts/chat api for gpts, which only check user token is valid

Which issue(s) this PR fixes

For #933

@zggmd front web ui also need update.

Special notes for your reviewer

@Abirdcfly Abirdcfly force-pushed the gpts-chat branch 7 times, most recently from f26e797 to 27c9c66 Compare March 28, 2024 07:19
@Abirdcfly Abirdcfly marked this pull request as ready for review March 28, 2024 07:21
return ConfigError
}
switch group {
case "":
Copy link
Collaborator

Choose a reason for hiding this comment

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

why not "arcadia.kubeagi.k8s.com.cn" ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

pkg/appruntime/base/node.go:71 has cut "arcadia.kubeagi.k8s.com.cn"
IMO, the following structure is clearer:

	switch baseNode.Group() {
	case "chain":
		switch baseNode.Kind() {
		case "llmchain":

If we want to change it, we do it separately in a subsequent pr

Copy link
Collaborator

Choose a reason for hiding this comment

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

That make sense to me .

Signed-off-by: Abirdcfly <fp544037857@gmail.com>
@bjwswang bjwswang merged commit b658b24 into kubeagi:main Mar 28, 2024
9 of 11 checks passed
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