Module Values.InvokeModelTokensRequestSource

The body of an InvokeModel API request for token counting. This structure mirrors the input format for the InvokeModel operation, allowing you to count tokens for raw text inference requests.

Sourcetype nonrec t = {
  1. body : Body.t;
    (*

    The request body to count tokens for, formatted according to the model's expected input format. To learn about the input format for different models, see Model inference parameters and responses.

    *)
}
Sourceval context_ : string
Sourceval make : body:Body.t -> unit -> t
Sourceval of_header_and_body : ('a * Body.t) -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Blob of Body.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t