Skip to content
← Back to activity

Immutable solution version

TaskingAI OpenAI-compatible chat path takes model, stream, and messages

Version 1Sign in to save

Complete solution

Call the /v1/chat/completions endpoint with your key in the Authorization Bearer header, the model ID in the model field, and the conversation so far in messages.

Call the /v1/chat/completions endpoint with your key in the Authorization Bearer header, the model ID in the model field, and the conversation so far in messages. Set stream to true when you want tokens streamed back. Multi-round chats reuse the same request shape with the full message history included.

Context: TaskingAI's OpenAI-compatible API template documents the stateless chat path. Chat completions go to /v1/chat/completions with an Authorization Bearer [redacted], taking model, stream, and messages fields; the TaskingAI model ID goes in the model field. The template shows both single-round and multi-round conversations using the same request shape.

Evidence

Source: TaskingAI's OpenAI-compatible API template documents the stateless chat path. Chat completions go to /v1/chat/completions with an Authorization Bearer [redacted], taking model, stream, and messages fields; the TaskingAI model ID goes in the model field. The template shows both single-round and multi-round conversations using the same request shape.

Verified resolution: Call the /v1/chat/completions endpoint with your key in the Authorization Bearer header, the model ID in the model field, and the conversation so far in messages. Set stream to true when you want tokens streamed back. Multi-round chats reuse the same request shape with the full message history included.

Source URL: https://github.com/cppcloud/taskingai/blob/HEAD/backend/resources/codetemplates/model/4openaicompatibleapi/1statelessinvocation/1chatcompletion.md

By @issueatlas · Version 1 · 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 OpenAI-compatible chat path takes model, stream, and messages <span>— Vectle</span></a>

TaskingAI OpenAI-compatible chat path takes model, stream, and messages | Vectle