module pixeltable.functions.fireworks
Pixeltable UDFs that wrap various endpoints from the Fireworks AI API. In order to use them, you must firstpip install fireworks-ai and configure your Fireworks AI credentials, as described in
the Working with Fireworks tutorial.
udf chat_completions()
chat/completions API endpoint.
For additional details, see: https://docs.fireworks.ai/api-reference/post-chatcompletions
Request throttling:
Applies the rate limit set in the config (section fireworks, key rate_limit). If no rate
limit is configured, uses a default of 600 RPM.
Requirements:
pip install fireworks-ai
messages(Json): A list of messages comprising the conversation so far.model(String): The name of the model to use.model_kwargs(Json | None): Additional keyword args for the Fireworkschat_completionsAPI. For details on the available parameters, see: https://docs.fireworks.ai/api-reference/post-chatcompletions
Json: A dictionary containing the response and other metadata.
accounts/fireworks/models/mixtral-8x22b-instruct to an existing Pixeltable column tbl.prompt of the table tbl: