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: support stream and chat_engine options for chats api #150

Merged
merged 1 commit into from
Jun 3, 2024

Conversation

Mini256
Copy link
Member

@Mini256 Mini256 commented Jun 3, 2024

For example

curl --location 'http://127.0.0.1:3000/api/v1/chats' \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer xxxxxx' \
  --data '{
      "messages": [
          {
              "role": "user",
              "content": "what is tidb?"
          }
      ],
      "index": "default",
      "chat_engine": "jira-bot",
      "stream": false
  }'

Copy link

vercel bot commented Jun 3, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
rag-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 3, 2024 3:49am
tidb-ai ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 3, 2024 3:49am

@Mini256 Mini256 merged commit 71a14ce into main Jun 3, 2024
3 checks passed
@Mini256 Mini256 deleted the feat-add-stream-and-chat-engine-options branch June 3, 2024 03:51
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.

1 participant