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 SSE invoke support for API server sample #95

Merged
merged 1 commit into from
Sep 21, 2023

Conversation

Lanture1064
Copy link
Collaborator

Towards #94

Copy link
Collaborator

@bjwswang bjwswang left a comment

Choose a reason for hiding this comment

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

fix the tests

@@ -169,3 +176,83 @@ func (w Workload) EmbedAndStoreDocument(ctx context.Context) error {

return chroma.AddDocuments(ctx, documents)
}

func StreamQueryHandler(c *fiber.Ctx) error {
c.Set("Content-Type", "text/event-stream")
Copy link
Collaborator

Choose a reason for hiding this comment

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

is this a new API? if yes,you need update the document.

@bjwswang bjwswang merged commit e27c7a7 into kubeagi:main Sep 21, 2023
4 checks passed
nkwangleiGIT pushed a commit to nkwangleiGIT/arcadia that referenced this pull request Dec 1, 2023
feat: add SSE invoke support for API server sample
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