View Source ExOpenAi.Request (ex_open_ai v2.0.1)
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"}