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

Function make_sapisidhash

gemini_web2api.py:129–132  ·  view source on GitHub ↗
(sapisid: str)

Source from the content-addressed store, hash-verified

127
128
129def make_sapisidhash(sapisid: str) -> str:
130 ts = int(time.time())
131 h = hashlib.sha1(f"{ts} {sapisid} https://gemini.google.com".encode()).hexdigest()
132 return f"SAPISIDHASH {ts}_{h}"
133
134
135def account_prefix() -> str:

Callers 2

gemini_stream_generateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected