Class OpenAIModel
java.lang.Object
ai.singlr.openai.OpenAIModel
- All Implemented Interfaces:
Model
OpenAI model implementation using the Responses API.
All requests use SSE streaming internally for robust timeout handling. Synchronous chat(List, List) methods stream under the hood and accumulate the response, avoiding HTTP read timeouts on
long-running generations. A per-line idle timeout detects stalled streams and throws a retryable
OpenAIException.
-
Method Details
-
id
-
provider
-
contextWindow
public int contextWindow()- Specified by:
contextWindowin interfaceModel
-
chat
-
chat
-
chatStream
- Specified by:
chatStreamin interfaceModel
-