MCPcopy Create free account
hub / github.com/CodeGoat24/UniGenBench / _get_session

Method _get_session

eval/src/vllm_request.py:40–51  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

38 self._encode_cache = {}
39
40 def _get_session(self):
41 session = getattr(self._local, "session", None)
42 if session is None:
43 session = requests.Session()
44 adapter = HTTPAdapter(
45 pool_connections=self.pool_maxsize,
46 pool_maxsize=self.pool_maxsize,
47 )
48 session.mount("http://", adapter)
49 session.mount("https://", adapter)
50 self._local.session = session
51 return session
52
53 def _encode_image(self, image):
54 with Image.open(image) as img:

Callers 1

process_itemMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected