mirror of
https://github.com/Ladebeze66/llm_ticket3.git
synced 2025-12-18 07:07:46 +01:00
23 lines
520 B
Python
23 lines
520 B
Python
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
|
|
|
|
import httpx
|
|
from typing import Any, Protocol
|
|
|
|
|
|
class Logger(Protocol):
|
|
def debug(self, msg: str, *args: Any, **kwargs: Any) -> None:
|
|
pass
|
|
|
|
|
|
class NoOpLogger:
|
|
def debug(self, msg: str, *args: Any, **kwargs: Any) -> None:
|
|
pass
|
|
|
|
|
|
def get_body_content(req: httpx.Request) -> str:
|
|
return "<streaming body>" if not hasattr(req, "_content") else str(req.content)
|
|
|
|
|
|
def get_default_logger() -> Logger:
|
|
return NoOpLogger()
|