Skip to content

[BUG CLIENT]: Documentation missing for chat.complete parameters #216

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
kraftfrosch opened this issue Apr 24, 2025 · 1 comment
Open

Comments

@kraftfrosch
Copy link

Python -VV

- not relevant

Pip Freeze

- not relevant

Reproduction Steps

  1. Open src/mistralai/chat.py

Expected Behavior

The documentation for the parameters tools, tool_choice, prediction & parallel_tool_calls are missing.

Additional Context

No response

Suggested Solutions

:param tools: The list of tools which can be called by the model to complete the request.
:param tool_choice: Controls how the model uses tools. Set to "auto" (default) to let the model decide whether to use tools, "any" to force tool use, or "none" to prevent tool use.
:param prediction: Specifies parts of predictable output, such as template-based responses, to optimize response time and allow the model to focus computational resources on unpredictable elements.
:param parallel_tool_calls: Controls whether parallel tool calling is allowed. When set to true (default), the model decides whether to use parallel tool calls. When set to false, forces the model to use single tool calling.
@kraftfrosch
Copy link
Author

Addition: also the parameter response_format is missing.

:param response_format: Specify the format that the model must output. Setting to { \"type\": \"json_object\" } enables JSON mode, which guarantees the message the model generates is in JSON.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant