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 Request]: JSON API response #6266

Open
4 tasks done
dangerousbeans opened this issue Mar 19, 2025 · 0 comments
Open
4 tasks done

[Feature Request]: JSON API response #6266

dangerousbeans opened this issue Mar 19, 2025 · 0 comments

Comments

@dangerousbeans
Copy link

Self Checks

  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (Language Policy).
  • Non-english title submitions will be closed directly ( 非英文标题的提交将会被直接关闭 ) (Language Policy).
  • Please do not modify this template :) and fill in all the required fields.

Is your feature request related to a problem?

I wish to use the completions API to optionally also return JSON so I can call RAGflow from another app

Describe the feature you'd like

POST /api/v1/chats/{chat_id}/completions

with a new body param: "json": boolean

Describe implementation you've considered

Asking the LLM to produce JSON output seems to just cause errors

Documentation, adoption, use case

Additional information

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants