Conversation
…into feat/byok
#33 In short, it'll 1. [Frontend] Recognize that user is trying to add a citation (trigger text is `\cite{`) 2. [Frontend] Temporarily suppress default Overleaf dropdown suggestions 3. [Frontend] Get the last sentence as context for LLM 4. [Backend] Fetch bibliography in `.bib` files as raw text, and remove irrelevant fields to save tokens 5. [Backend] Call XtraMCP to get paper abstract, using paper title as key 6. [Backend] Query a fast LLM (hardcoded to `gpt-5.2` for now) to get at most 3 citation keys 7. [Frontend] Suppress default Overleaf tab-completion to allow users to accept citation suggestions
### Key changes: - Select models by ID instead of slug so users can have multiple API keys for the same slug - Add loading spinner for save/edit actions
|
@wjiayis Hi Jia Yi, I recall you had some great feedback to improve user experience / make it more intuitive for new users. Could you kindly help to check if your concerns have been addressed too? Thanks! |
4ndrelim
left a comment
There was a problem hiding this comment.
Clarification required.
Also, do we know the issue with deepseek and GLM? If not, no worries, we can proceed but raise an issue for those 2 first.
|
I noticed in the screenshot here there are 3 custom models. May i verify the expected behaviour: |
@4ndrelim only the models that have been added successfully will show up in the selection menu (models that have missing API keys/endpoints are invalid and can't be added in the first place) |
4ndrelim
left a comment
There was a problem hiding this comment.
lgtm. need to check on gpt5.1 behavior.
|
I notice that for
|


Summary
Adds BYOK features (including base URL, API key and param configurations), also added changes as per suggestions from #157.
Tested Providers
Stable: GPT, Claude, Gemini, MiniMax, OpenRouter
Unstable: DeepSeek, GLM
Screenshots
Closes #118 Closes #149 Closes #157