ElGraph.LLM.OpenAI (ElGraph v0.3.0)

Copy Markdown View Source

OpenAI Chat Completions API 어댑터 (chat/3 비스트리밍 + stream_chat/3 SSE 스트리밍).

config: :api_key(필수), :model(기본 gpt-4o), :req_options. stream_chat/3opts[:on_delta]로 토큰을 실시간 방출하고 완료 시 chat/3과 동일한 누적 응답을 반환한다. 어댑터는 자체 재시도를 하지 않는다 — 노드 retry: 정책이 담당한다.