MCPcopy Create free account
hub / github.com/Open-Bee/DataStudio / _make_request

Method _make_request

datastudio/models/openai_api.py:232–239  ·  view source on GitHub ↗

Make an API request, delegating to the non-streaming handler.

(
        self,
        session: aiohttp.ClientSession,
        message: List[dict],
        **kwargs,
    )

Source from the content-addressed store, hash-verified

230 return 0, answer
231
232 async def _make_request(
233 self,
234 session: aiohttp.ClientSession,
235 message: List[dict],
236 **kwargs,
237 ) -> Tuple[int, Any]:
238 """Make an API request, delegating to the non-streaming handler."""
239 return await self._request_non_streaming(session, message, **kwargs)
240
241 def _calculate_retry_delay(self, attempt: int) -> float:
242 """Calculate exponential backoff delay with full jitter.

Callers 1

Calls 1

Tested by

no test coverage detected