TypeScript wire contracts for creating/updating LLM provider configs (platform, base_url, models, capabilities).
// Source: https://github.com/iOfficeAI/AionUi | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
/**
* @license
* Copyright 2025 AionUi (aionui.com)
* SPDX-License-Identifier: Apache-2.0
*/
/**
* Wire-contract types for `/api/providers/*`.
*
* Direct mirror of the Rust types in
* `crates/aionui-api-types/src/provider.rs`. Keep in sync with the
* backend spec.
*/
import type { IProvider, ModelCapability } from '@/common/config/storage';
export interface CreateProviderRequest {
/**
* Optional caller-supplied id. When omitted, the server generates one.
* Validated leniently (any non-empty string) to accept the frontend's
* 8-char `uuid()` helper output.
*/
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key