diff --git a/docs/api-reference/arc-api.yaml b/docs/api-reference/arc-api.yaml index c2d679f1f..709eb2e2a 100644 --- a/docs/api-reference/arc-api.yaml +++ b/docs/api-reference/arc-api.yaml @@ -1162,10 +1162,11 @@ paths: tags: [Completions] summary: Create Completion description: | - Generate a text completion. Set `stream: true` for Anthropic-style SSE streaming. + Generate a text completion. Set `stream: true` for SSE streaming. - SSE event types: message_start, content_block_start, content_block_delta, - content_block_stop, message_delta, message_stop, ping, error. + All SSE frames use `event: stream_event` with a JSON-serialized StreamEvent + payload. StreamEvent types: stream_start, text_start, text_delta, text_end, + tool_call_start, tool_call_delta, tool_call_end, finish, error. requestBody: required: true content: diff --git a/packages/arc-api-client/src/api/completions-api.ts b/packages/arc-api-client/src/api/completions-api.ts index 3c0993b77..d032a5d49 100644 --- a/packages/arc-api-client/src/api/completions-api.ts +++ b/packages/arc-api-client/src/api/completions-api.ts @@ -33,7 +33,7 @@ import type { ErrorResponse } from '../models'; export const CompletionsApiAxiosParamCreator = function (configuration?: Configuration) { return { /** - * Generate a text completion. Set `stream: true` for Anthropic-style SSE streaming. SSE event types: message_start, content_block_start, content_block_delta, content_block_stop, message_delta, message_stop, ping, error. + * Generate a text completion. Set `stream: true` for SSE streaming. All SSE frames use `event: stream_event` with a JSON-serialized StreamEvent payload. StreamEvent types: stream_start, text_start, text_delta, text_end, tool_call_start, tool_call_delta, tool_call_end, finish, error. * @summary Create Completion * @param {CreateCompletionRequest} createCompletionRequest * @param {*} [options] Override http request option. @@ -84,7 +84,7 @@ export const CompletionsApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = CompletionsApiAxiosParamCreator(configuration) return { /** - * Generate a text completion. Set `stream: true` for Anthropic-style SSE streaming. SSE event types: message_start, content_block_start, content_block_delta, content_block_stop, message_delta, message_stop, ping, error. + * Generate a text completion. Set `stream: true` for SSE streaming. All SSE frames use `event: stream_event` with a JSON-serialized StreamEvent payload. StreamEvent types: stream_start, text_start, text_delta, text_end, tool_call_start, tool_call_delta, tool_call_end, finish, error. * @summary Create Completion * @param {CreateCompletionRequest} createCompletionRequest * @param {*} [options] Override http request option. @@ -106,7 +106,7 @@ export const CompletionsApiFactory = function (configuration?: Configuration, ba const localVarFp = CompletionsApiFp(configuration) return { /** - * Generate a text completion. Set `stream: true` for Anthropic-style SSE streaming. SSE event types: message_start, content_block_start, content_block_delta, content_block_stop, message_delta, message_stop, ping, error. + * Generate a text completion. Set `stream: true` for SSE streaming. All SSE frames use `event: stream_event` with a JSON-serialized StreamEvent payload. StreamEvent types: stream_start, text_start, text_delta, text_end, tool_call_start, tool_call_delta, tool_call_end, finish, error. * @summary Create Completion * @param {CreateCompletionRequest} createCompletionRequest * @param {*} [options] Override http request option. @@ -123,7 +123,7 @@ export const CompletionsApiFactory = function (configuration?: Configuration, ba */ export class CompletionsApi extends BaseAPI { /** - * Generate a text completion. Set `stream: true` for Anthropic-style SSE streaming. SSE event types: message_start, content_block_start, content_block_delta, content_block_stop, message_delta, message_stop, ping, error. + * Generate a text completion. Set `stream: true` for SSE streaming. All SSE frames use `event: stream_event` with a JSON-serialized StreamEvent payload. StreamEvent types: stream_start, text_start, text_delta, text_end, tool_call_start, tool_call_delta, tool_call_end, finish, error. * @summary Create Completion * @param {CreateCompletionRequest} createCompletionRequest * @param {*} [options] Override http request option.