GenAI.Provider.XAI (Noizu Labs, GenAI Wrapper v0.2.3)

Module for interacting with the XAI API.

Link to this section Summary

Functions

Return config_key inference provide application config stored under :genai entry

Obtain map of effective settings: settings, model_settings, provider_settings, config_settings, etc.

Prepare endpoint and method to make inference call to

Retrieves a list of models supported by the OpenAI API for given user.

Prepare request body to be passed to inference call.

Build and run inference thread

Link to this section Functions

Link to this function

chat(messages, tools, settings)

Link to this function

chat(model, messages, tools, hyper_parameters, provider_settings \\ [], context \\ nil, options \\ nil)

Callback implementation for GenAI.InferenceProviderBehaviour.chat/7.

Return config_key inference provide application config stored under :genai entry

Link to this function

default_encoder()

Link to this function

effective_settings(model, session, context, options \\ nil)

Obtain map of effective settings: settings, model_settings, provider_settings, config_settings, etc.

Link to this function

endpoint(model, settings, session, context, options \\ nil)

Prepare endpoint and method to make inference call to

Link to this function

headers(options)

Link to this function

headers(model, settings, session, context, options \\ nil)

Prepare request headers

Link to this function

models(settings \\ [])

Retrieves a list of models supported by the OpenAI API for given user.

Link to this function

request_body(model, messages, tools, settings, session, context, options \\ nil)

Prepare request body to be passed to inference call.

Link to this function

run(session, context, options \\ nil)

Build and run inference thread

Link to this function

standardize_model(model)

Callback implementation for GenAI.InferenceProviderBehaviour.standardize_model/1.