-
Notifications
You must be signed in to change notification settings - Fork 145

Description
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 the f.req
field. 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!