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]: Let "/api/v1/openai/chat/completion" or another API return citations. #2711

Open
GPTLocalhost opened this issue Nov 25, 2024 · 0 comments
Labels
enhancement New feature or request feature request

Comments

@GPTLocalhost
Copy link

What would you like to see?

A similar but different idea to the following: Can the "chat completion" API return citations?

#2430 (comment)

I'm trying to integrate AnythingLLM deeper with Microsoft Word, based on this demo. The idea is to convert the citations in AnythingLLM to footnotes in Word. Currently the "/api/v1/openai/chat/completions" API returns data like the following:

{"id":"bae19b72-3f17-45c6-bf6c-2e99d994fc5e","object":"chat.completion","created":1732495215436,"model":"workspace-1","choices":[{"message":{"role":"assistant","content":" Yes, the AI Scientist is an end-to-end framework designed to automate the generation of research ideas, implementation, and the production of research papers."},"logprobs":null,"finish_reason":"stop"}]}

It is understandable that citations are not included, at least for being compatible with OpenAI's spec. My question is: Is it possible to enhance the API or provide another API for receiving the citation data, say based the returned id in the above API?

@GPTLocalhost GPTLocalhost added enhancement New feature or request feature request labels Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request feature request
Projects
None yet
Development

No branches or pull requests

1 participant