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

Function log

gemini_web2api/gemini.py:25–29  ·  view source on GitHub ↗
(msg: str)

Source from the content-addressed store, hash-verified

23
24
25def log(msg: str):
26 if CONFIG["log_requests"]:
27 import sys
28 sys.stderr.write(f"[{time.strftime('%H:%M:%S')}] {msg}\n")
29 sys.stderr.flush()
30
31
32def _get_ssl_ctx():

Callers 11

load_cookieFunction · 0.70
generateFunction · 0.70
generate_streamFunction · 0.70
_get_page_tokensFunction · 0.70
upload_imageFunction · 0.70
fetch_image_bytesFunction · 0.70
resolve_modelFunction · 0.70
_upload_imagesFunction · 0.70
log_messageMethod · 0.70
do_POSTMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected