create_chat_completion
Run a one-shot, non-streaming chat completion on MisarDev's OpenAI-compatible model API. model='misar-online' grounds the answer in the web with citations; omit model for the default coding model. Spends model credits.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Model id; 'misar-online' or 'misar-search' for web-grounded answers | |
| messages | Yes | OpenAI-style messages: [{ role: 'system'|'user'|'assistant', content: string }] | |
| max_tokens | No | Maximum tokens to generate | |
| temperature | No | Sampling temperature |