Generated reference
osyra.resources.async_resources
Async resource namespaces for ``AsyncOpenAI`` — asyncio twins of the sync ``chat.completions`` / ``embeddings`` / ``models`` resources.
They share the exact body-assembly + extra-header code (``_params.py``) and the exact response types with the sync resources, so the async path is a literal asyncio mirror — the AsyncOpenAI drop-in promise (AP00023 §7). Only the transport calls differ (``arequest_json`` / ``astream_lines`` on the async client).
Classes
class AsyncChat
Methods
__init__
def __init__(self, client: 'AsyncOpenAI') -> Noneclass AsyncCompletions
Methods
__init__
def __init__(self, client: 'AsyncOpenAI') -> Nonecreate (async)
async def create(self, *, model: str, messages: List[Dict[str, Any]], stream: bool = False, **kwargs: Any) -> Union[ChatCompletion, AsyncChatCompletionStream]class AsyncEmbeddings
Methods
__init__
def __init__(self, client: 'AsyncOpenAI') -> Nonecreate (async)
async def create(self, *, model: str, input: Union[str, List[str]], **kwargs: Any) -> CreateEmbeddingResponseclass AsyncModels
Methods
__init__
def __init__(self, client: 'AsyncOpenAI') -> Nonelist (async)
async def list(self, *, osyra_workspace: Optional[str] = None, **kwargs: Any) -> ModelList