Member Junction
    Preparing search index...

    The scriptable seam handed to a provider conformance test file.

    interface OpenAICompatibleSeam {
        Client: OpenAICompatibleChatClient;
        ScriptFailure: (
            error: Error,
            at: FailureSite,
            options?: { ChunkBeforeError?: string },
        ) => void;
        ScriptNonStreamingSuccess: (
            content: string,
            usage: ExpectedUsageCounts,
        ) => void;
        ScriptStreamingCancellation: (
            chunksBeforeAbort: string[],
            controller: AbortController,
        ) => void;
        ScriptStreamingSuccess: (
            chunks: string[],
            usage: ExpectedUsageCounts,
        ) => void;
    }
    Index

    Properties

    Inject this in place of the driver's private SDK client.

    ScriptFailure: (
        error: Error,
        at: FailureSite,
        options?: { ChunkBeforeError?: string },
    ) => void

    Conformance-config hook: next call fails at the given site.

    ScriptNonStreamingSuccess: (content: string, usage: ExpectedUsageCounts) => void

    Conformance-config hook: next non-streaming call succeeds.

    ScriptStreamingCancellation: (
        chunksBeforeAbort: string[],
        controller: AbortController,
    ) => void

    Conformance-config hook: next streaming call emits chunks, aborts the controller, then dies like an aborted SDK stream.

    ScriptStreamingSuccess: (chunks: string[], usage: ExpectedUsageCounts) => void

    Conformance-config hook: next streaming call emits these chunks then completes.