MCPcopy Create free account
hub / github.com/ZyphrZero/z.ai2api_python / _make_session

Function _make_session

tests/test_guest_pool_concurrency.py:21–26  ·  view source on GitHub ↗
(user_id: str, token_suffix: str)

Source from the content-addressed store, hash-verified

19
20
21def _make_session(user_id: str, token_suffix: str) -> GuestSession:
22 return GuestSession(
23 token=f"token-{token_suffix}",
24 user_id=user_id,
25 username=f"Guest-{user_id}",
26 )
27
28
29def _make_request() -> OpenAIRequest:

Callers 1

fake_create_sessionFunction · 0.70

Calls 1

GuestSessionClass · 0.90

Tested by

no test coverage detected