Documentation
¶
Overview ¶
Package openai provides a deterministic, stateless mock upstream for several LLM providers. Responses preserve the provider-specific shapes and usage fields consumed by gateway policies.
Index ¶
Constants ¶
View Source
const Port = 3008
Port is the container port used by the testbench.
View Source
const ReadinessPath = "/__readiness"
ReadinessPath is used by provider readiness probes.
View Source
const StreamErrorTrigger = "STREAM_ERROR"
StreamErrorTrigger, anywhere in a streaming request, ends the stream with the provider's error event instead of a clean finish.
View Source
const StreamedReply = "This is a streamed reply from the mock model."
StreamedReply is the assistant text every streamed reply carries, one word per delta.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.