qbraid_core.services.chat.ChatClient
- class qbraid_core.services.chat.ChatClient(*args, **kwargs)
Client for interacting with qBraid chat service.
- __init__(*args, **kwargs)
Methods
__init__
(*args, **kwargs)add_model
(model, description, pricing)Add a new chat model to the service.
chat
(prompt[, model, response_format])Fetch the full chat response as a dictionary.
chat_stream
(prompt[, model, response_format])Stream chat response chunks.
get_models
([params])Fetch available models or details of a specific model.
user_credits_value
()Get the current user's qBraid credits value.
Attributes
session
The QbraidSession used to make requests.