← Về thư mục
openai4s/llm/providers/openai.py
- _chat_openai · function · L14-L103 — def _chat_openai( messages, cfg, base, model, max_tokens, temperature, stop, on_delta=None, *, post_json, post_sse, tools=None, tool_choice=None, parallel_tool_calls=None, ) -> dict
- _StreamStartError · class · L106-L108 — class _StreamStartError(Exception)
- _chat_openai_stream · function · L140-L324 — def _chat_openai_stream(url, payload, headers, cfg, on_delta, *, post_sse) -> dict
- _discard_uncommitted_attempt · function · L157-L173 — def _discard_uncommitted_attempt() -> None
- _on_event · function · L175-L251 — def _on_event(evt: dict) -> None