mirror of
https://github.com/HanaokaYuzu/Gemini-API.git
synced 2026-04-12 04:19:46 -06:00
Sources not being returned #62
Labels
No labels
advanced
advanced
bug
dependencies
discussion
documentation
duplicate
enhancement
good first issue
help wanted
invalid
model
pull-request
question
unreproducible
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
mirrors/Gemini-API#62
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ghost on GitHub (Jun 3, 2025).
Hey @HanaokaYuzu, thanks for your work on this!
I was testing out the library locally and unfortunately it seems like it doesn't trigger the source generation.
e.g. this query "What is facebook.com?" should return also a list of sources which you can see if you manually input that in the gemini interface and press input:
Instead if you run it from the library, it does return the text output, but not the sources and links. You can even confirm by going to the generated chat and checking the UI.
I've did a bit of research and it seems to be associated to a few (2) additional values which are sent in the body of the request to
/StreamGenerate- specifically in thef.reqfield. Unfortunately I couldn't figure out how and where these tokens are being generated (one just seems to be the md5 of the query, but couldn't find the origin of the longer one starting with the!, but they change with every request.Would appreciate if you can take a look at this since it seems like a pretty important feature.
Thanks!