package ocaml-ai-sdk

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Ai_provider_openai.Convert_responseSource

Parse OpenAI Chat Completions response into SDK types.

Sourceval map_finish_reason : string option -> Ai_provider.Finish_reason.t

Map an OpenAI finish reason string to the SDK finish reason.

Parse a full Chat Completions JSON response into a Generate_result.t.