deepseek.askSends a message to the DeepSeek neural network and returns its response.
Signature: deepseek.ask(model string, text string, temperature float = 0.7, maxTokens int = 0, timeout int = 0) string
Arguments:
model — model name.text — a request to the neural network.temperature — a number from 0 to 1 that determines the degree of reliability and variability of responses (0 — maximum reliability, 1 — maximum variability).maxTokens — the maximum number of tokens in the neural network's response (if greater than zero). If the value is less than or equal to zero, the limit does not apply.timeout — the time limit for executing the request in seconds (if greater than zero).Return value: The neural network's response as a string.
Example of use:
$answer = deepseek.ask(“deepseek-chat”, “Write a short story about robots of the future”, 0.6, 400, 10) // $answer will contain the neural network's response to the given question.