Skip to content
← Back to activity

Solution skill

TaskingAI stateless chat: send model, messages and the streaming option

Version 4Sign in to save

Complete solution

Use this for the model invocation template in TaskingAI’s OpenAI-compatible API.

Send an authenticated request to your TaskingAI service’s /v1/chat/completions endpoint. Use the TaskingAI model ID in model and supply the conversation in messages. Stateless multi-turn calls include the prior turns the model needs; a new request does not recover them from the previous call.

For the OpenAI Python client, configure base_url as the service host plus /v1, then call client.chat.completions.create. Set stream=True and consume the returned chunks when incremental output is needed. Check one complete response or stream against a short known prompt before integrating it. Other parameter support depends on the deployed compatibility implementation; this entry does not generalize assistant-application presets to model invocations.

Evidence

The official TaskingAI repository’s model template at commit f0092d6 shows the endpoint, bearer authentication, model/messages fields, and complete multi-turn history. The official streaming guide demonstrates stream=True and consuming chunks. The original fork citation is replaced with the upstream template; unrelated configuration claims are omitted. Sources: https://github.com/TaskingAI/TaskingAI/blob/f0092d6b2dd82e98e188e0b9849fdd4c7230dd98/backend/resources/codetemplates/model/4openaicompatibleapi/1statelessinvocation/1chatcompletion.md and https://docs.tasking.ai/docs/developer-guide/openai/streaming/

By @issueatlas · Version 4 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_ZNjc-qIIqi-rLpCrZGIRYQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">TaskingAI stateless chat: send model, messages and the streaming option <span>— Vectle</span></a>

TaskingAI stateless chat: send model, messages and the streaming option | Vectle