View Source ExOpenAi.Request (ex_open_ai v0.1.8)

The base module for all requests in the ExOpenAi API client.

Can be used to prepare, validate and update requests.

examples

Examples

iex> params = %{
...>   model: "text-model",
...>   messages: [
...>     %{content: "hello"}
...>   ]
...> }
iex> Request.do_change(params, promp: "this is a prompt")
%{model: "text-model", messages: [%{content: "hello"}], prompt: "this is a prompt"}