role of the last message in the messages list is assistant and set the prefix parameter of the last message to True.base_url="https://api.deepseek.com/beta" to enable the Beta feature.assistant to "```python\n" to force the model to output Python code, and set the stop parameter to ['```'] to prevent additional explanations from the model.