Documentation Index
Fetch the complete documentation index at: https://docs.pixeltable.com/llms.txt
Use this file to discover all available pages before exploring further.
module pixeltable.functions.deepseek
Pixeltable UDFs for Deepseek AI models. Provides integration with Deepseek’s language models for chat completions and other AI capabilities.udf chat_completions()
Signature
chat/completions API endpoint.
For additional details, see: https://api-docs.deepseek.com/api/create-chat-completion
Deepseek uses the OpenAI SDK, so you will need to install the openai package to use this UDF.
Request throttling:
Applies the rate limit set in the config (section deepseek, key rate_limit). If no rate
limit is configured, uses a default of 600 RPM.
Requirements:
pip install openai
messages(pxt.Json): A list of messages to use for chat completion, as described in the Deepseek API documentation.model(pxt.String): The model to use for chat completion.model_kwargs(pxt.Json | None): Additional keyword args for the Deepseekchat/completionsAPI. For details on the available parameters, see: https://api-docs.deepseek.com/api/create-chat-completiontools(pxt.Json | None): An optional list of Pixeltable tools to use for the request.tool_choice(pxt.Json | None): An optional tool choice configuration.
pxt.Json: A dictionary containing the response and other metadata.
deepseek-chat to an existing Pixeltable column tbl.prompt of the table tbl: