← Về thư mục
openai4s/llm/providers/anthropic.py
- _chat_anthropic · function · L16-L91 — def _chat_anthropic( messages, cfg, base, model, max_tokens, temperature, stop, on_delta=None, *, tools=None, tool_choice=None, parallel_tool_calls=None, post_json, post_sse, ) -> dict
- _StreamStartError · class · L94-L95 — class _StreamStartError(Exception)
- _chat_anthropic_stream · function · L98-L266 — def _chat_anthropic_stream(url, payload, headers, cfg, on_delta, *, post_sse) -> dict
- _block · function · L109-L110 — def _block(index: int) -> dict[str, Any]
- _emit · function · L112-L118 — def _emit(piece: str) -> None
- _on_event · function · L120-L191 — def _on_event(evt: dict) -> None