mirror of
https://github.com/fabro-sh/fabro.git
synced 2026-10-17 04:37:03 +00:00
Adds a completions API endpoint that supports both streaming (SSE) and non-streaming (JSON) modes, with structured output via JSON Schema. Wires up the CLI `arc llm prompt` command to use the server when `--mode server` is specified. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
34 lines
746 B
TypeScript
34 lines
746 B
TypeScript
/* tslint:disable */
|
|
/* eslint-disable */
|
|
/**
|
|
* Arc Run API
|
|
* HTTP API for managing Arc workflow run executions.
|
|
*
|
|
* The version of the OpenAPI document: 0.1.0
|
|
*
|
|
*
|
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
* https://openapi-generator.tech
|
|
* Do not edit the class manually.
|
|
*/
|
|
|
|
|
|
// May contain unused imports in some cases
|
|
// @ts-ignore
|
|
import type { CompletionUsage } from './completion-usage';
|
|
|
|
export interface CompletionResponse {
|
|
'id': string;
|
|
'model': string;
|
|
/**
|
|
* Generated text.
|
|
*/
|
|
'content': string;
|
|
/**
|
|
* Why generation stopped (end_turn, max_tokens).
|
|
*/
|
|
'stop_reason': string;
|
|
'usage': CompletionUsage;
|
|
'output'?: any;
|
|
}
|
|
|