MCPcopy
hub / github.com/Sophomoresty/gemini-web2api / _get_url

Function _get_url

gemini_web2api/gemini.py:140–147  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

138
139
140def _get_url() -> str:
141 reqid = int(time.time()) % 1000000
142 account_prefix = _account_prefix()
143 return (
144 f"https://gemini.google.com{account_prefix}/_/BardChatUi/data/"
145 "assistant.lamda.BardFrontendService/StreamGenerate"
146 f"?bl={CONFIG['gemini_bl']}&hl=en&_reqid={reqid}&rt=c"
147 )
148
149
150def clean_text(text: str) -> str:

Callers 2

generateFunction · 0.85
generate_streamFunction · 0.85

Calls 1

_account_prefixFunction · 0.85

Tested by

no test coverage detected