GenAI.InferenceProvider.Helpers (GenAI Core v0.2.0)
Inference Provider Helpers.
Link to this section Summary
Functions
Make API Call Via Finch.
Set optional field if present.
Set required setting or raise RequestError if not present.
Apply setting or default value if not present.
Apply setting as_setting or default value if not present.
Link to this section Functions
Link to this function
api_call(type, url, headers, body \\ nil, options \\ [])
Make API Call Via Finch.
Link to this function
optional_field(body, field, value)
Set optional field if present.
Link to this function
with_required_setting(body, setting, settings)
Set required setting or raise RequestError if not present.
Link to this function
with_setting(body, setting, settings, default \\ nil)
Apply setting or default value if not present.
Link to this function
with_setting_as(body, as_setting, setting, settings, default \\ nil)
Apply setting as_setting or default value if not present.