Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "0.4.0-alpha.1"
".": "0.4.0-alpha.2"
}
8 changes: 4 additions & 4 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 111
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack%2Fllama-stack-client-35c6569e5e9fcc85084c9728eb7fc7c5908297fcc77043d621d25de3c850a990.yml
openapi_spec_hash: 0f95bbeee16f3205d36ec34cfa62c711
config_hash: ef275cc002a89629459fd73d0cf9cba9
configured_endpoints: 112
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/llamastack%2Fllama-stack-client-a9f69d4a5f5d9bf957497cac83fdad1f72c8a44614098447762c53883e8bd987.yml
openapi_spec_hash: 75de5bdff8e70591d6033b609fc24e5d
config_hash: 34558d5f6e265184d712d43e231eb693
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 0.4.0-alpha.2 (2025-11-03)

Full Changelog: [v0.4.0-alpha.1...v0.4.0-alpha.2](https://github.com/llamastack/llama-stack-client-typescript/compare/v0.4.0-alpha.1...v0.4.0-alpha.2)

### Features

* **api:** point models.list() to /v1/openai/v1/models ([bb35776](https://github.com/llamastack/llama-stack-client-typescript/commit/bb35776ec613b3045cf3b3f62e5361d9403fa2a8))

## 0.4.0-alpha.1 (2025-10-31)

Full Changelog: [v0.2.23-alpha.1...v0.4.0-alpha.1](https://github.com/llamastack/llama-stack-client-typescript/compare/v0.2.23-alpha.1...v0.4.0-alpha.1)
Expand Down
10 changes: 7 additions & 3 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,15 +268,19 @@ Types:
Methods:

- <code title="get /v1/models/{model_id}">client.models.<a href="./src/resources/models/models.ts">retrieve</a>(modelId) -> Model</code>
- <code title="get /v1/models">client.models.<a href="./src/resources/models/models.ts">list</a>() -> ModelListResponse</code>
- <code title="get /v1/openai/v1/models">client.models.<a href="./src/resources/models/models.ts">list</a>() -> ModelListResponse</code>
- <code title="post /v1/models">client.models.<a href="./src/resources/models/models.ts">register</a>({ ...params }) -> Model</code>
- <code title="delete /v1/models/{model_id}">client.models.<a href="./src/resources/models/models.ts">unregister</a>(modelId) -> void</code>

## OpenAI

Types:

- <code><a href="./src/resources/models/openai.ts">OpenAIListResponse</a></code>

Methods:

- <code title="get /v1/models">client.models.openai.<a href="./src/resources/models/openai.ts">list</a>() -> ModelListResponse</code>
- <code title="get /v1/models">client.models.openai.<a href="./src/resources/models/openai.ts">list</a>() -> OpenAIListResponse</code>

# Providers

Expand All @@ -299,7 +303,7 @@ Types:

Methods:

- <code title="get /v1/inspect/routes">client.routes.<a href="./src/resources/routes.ts">list</a>() -> RouteListResponse</code>
- <code title="get /v1/inspect/routes">client.routes.<a href="./src/resources/routes.ts">list</a>({ ...params }) -> RouteListResponse</code>

# Moderations

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "llama-stack-client",
"version": "0.4.0-alpha.1",
"version": "0.4.0-alpha.2",
"description": "The official TypeScript library for the Llama Stack Client API",
"author": "Llama Stack Client <[email protected]>",
"types": "dist/index.d.ts",
Expand Down
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import {
import { HealthInfo, Inspect, ProviderInfo, RouteInfo, VersionInfo } from './resources/inspect';
import { CreateResponse, ModerationCreateParams, Moderations } from './resources/moderations';
import { ListProvidersResponse, ProviderListResponse, Providers } from './resources/providers';
import { ListRoutesResponse, RouteListResponse, Routes } from './resources/routes';
import { ListRoutesResponse, RouteListParams, RouteListResponse, Routes } from './resources/routes';
import { RunShieldResponse, Safety, SafetyRunShieldParams } from './resources/safety';
import {
Scoring,
Expand Down Expand Up @@ -484,6 +484,7 @@ export declare namespace LlamaStackClient {
Routes as Routes,
type ListRoutesResponse as ListRoutesResponse,
type RouteListResponse as RouteListResponse,
type RouteListParams as RouteListParams,
};

export {
Expand Down
36 changes: 36 additions & 0 deletions src/resources/conversations/conversations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ export namespace ConversationCreateParams {
| Array<
| OpenAIResponseMessage.OpenAIResponseInputMessageContentText
| OpenAIResponseMessage.OpenAIResponseInputMessageContentImage
| OpenAIResponseMessage.OpenAIResponseInputMessageContentFile
>
| Array<
| OpenAIResponseMessage.OpenAIResponseOutputMessageContentOutputText
Expand Down Expand Up @@ -154,12 +155,47 @@ export namespace ConversationCreateParams {
*/
type: 'input_image';

/**
* (Optional) The ID of the file to be sent to the model.
*/
file_id?: string;

/**
* (Optional) URL of the image content
*/
image_url?: string;
}

/**
* File content for input messages in OpenAI response format.
*/
export interface OpenAIResponseInputMessageContentFile {
/**
* The type of the input item. Always `input_file`.
*/
type: 'input_file';

/**
* The data of the file to be sent to the model.
*/
file_data?: string;

/**
* (Optional) The ID of the file to be sent to the model.
*/
file_id?: string;

/**
* The URL of the file to be sent to the model.
*/
file_url?: string;

/**
* The name of the file to be sent to the model.
*/
filename?: string;
}

export interface OpenAIResponseOutputMessageContentOutputText {
annotations: Array<
| OpenAIResponseOutputMessageContentOutputText.OpenAIResponseAnnotationFileCitation
Expand Down
144 changes: 144 additions & 0 deletions src/resources/conversations/items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ export namespace ItemCreateResponse {
| Array<
| OpenAIResponseMessage.OpenAIResponseInputMessageContentText
| OpenAIResponseMessage.OpenAIResponseInputMessageContentImage
| OpenAIResponseMessage.OpenAIResponseInputMessageContentFile
>
| Array<
| OpenAIResponseMessage.OpenAIResponseOutputMessageContentOutputText
Expand Down Expand Up @@ -140,12 +141,47 @@ export namespace ItemCreateResponse {
*/
type: 'input_image';

/**
* (Optional) The ID of the file to be sent to the model.
*/
file_id?: string;

/**
* (Optional) URL of the image content
*/
image_url?: string;
}

/**
* File content for input messages in OpenAI response format.
*/
export interface OpenAIResponseInputMessageContentFile {
/**
* The type of the input item. Always `input_file`.
*/
type: 'input_file';

/**
* The data of the file to be sent to the model.
*/
file_data?: string;

/**
* (Optional) The ID of the file to be sent to the model.
*/
file_id?: string;

/**
* The URL of the file to be sent to the model.
*/
file_url?: string;

/**
* The name of the file to be sent to the model.
*/
filename?: string;
}

export interface OpenAIResponseOutputMessageContentOutputText {
annotations: Array<
| OpenAIResponseOutputMessageContentOutputText.OpenAIResponseAnnotationFileCitation
Expand Down Expand Up @@ -533,6 +569,7 @@ export namespace ItemListResponse {
| Array<
| OpenAIResponseMessage.OpenAIResponseInputMessageContentText
| OpenAIResponseMessage.OpenAIResponseInputMessageContentImage
| OpenAIResponseMessage.OpenAIResponseInputMessageContentFile
>
| Array<
| OpenAIResponseMessage.OpenAIResponseOutputMessageContentOutputText
Expand Down Expand Up @@ -578,12 +615,47 @@ export namespace ItemListResponse {
*/
type: 'input_image';

/**
* (Optional) The ID of the file to be sent to the model.
*/
file_id?: string;

/**
* (Optional) URL of the image content
*/
image_url?: string;
}

/**
* File content for input messages in OpenAI response format.
*/
export interface OpenAIResponseInputMessageContentFile {
/**
* The type of the input item. Always `input_file`.
*/
type: 'input_file';

/**
* The data of the file to be sent to the model.
*/
file_data?: string;

/**
* (Optional) The ID of the file to be sent to the model.
*/
file_id?: string;

/**
* The URL of the file to be sent to the model.
*/
file_url?: string;

/**
* The name of the file to be sent to the model.
*/
filename?: string;
}

export interface OpenAIResponseOutputMessageContentOutputText {
annotations: Array<
| OpenAIResponseOutputMessageContentOutputText.OpenAIResponseAnnotationFileCitation
Expand Down Expand Up @@ -971,6 +1043,7 @@ export namespace ItemGetResponse {
| Array<
| OpenAIResponseMessage.OpenAIResponseInputMessageContentText
| OpenAIResponseMessage.OpenAIResponseInputMessageContentImage
| OpenAIResponseMessage.OpenAIResponseInputMessageContentFile
>
| Array<
| OpenAIResponseMessage.OpenAIResponseOutputMessageContentOutputText
Expand Down Expand Up @@ -1016,12 +1089,47 @@ export namespace ItemGetResponse {
*/
type: 'input_image';

/**
* (Optional) The ID of the file to be sent to the model.
*/
file_id?: string;

/**
* (Optional) URL of the image content
*/
image_url?: string;
}

/**
* File content for input messages in OpenAI response format.
*/
export interface OpenAIResponseInputMessageContentFile {
/**
* The type of the input item. Always `input_file`.
*/
type: 'input_file';

/**
* The data of the file to be sent to the model.
*/
file_data?: string;

/**
* (Optional) The ID of the file to be sent to the model.
*/
file_id?: string;

/**
* The URL of the file to be sent to the model.
*/
file_url?: string;

/**
* The name of the file to be sent to the model.
*/
filename?: string;
}

export interface OpenAIResponseOutputMessageContentOutputText {
annotations: Array<
| OpenAIResponseOutputMessageContentOutputText.OpenAIResponseAnnotationFileCitation
Expand Down Expand Up @@ -1410,6 +1518,7 @@ export namespace ItemCreateParams {
| Array<
| OpenAIResponseMessage.OpenAIResponseInputMessageContentText
| OpenAIResponseMessage.OpenAIResponseInputMessageContentImage
| OpenAIResponseMessage.OpenAIResponseInputMessageContentFile
>
| Array<
| OpenAIResponseMessage.OpenAIResponseOutputMessageContentOutputText
Expand Down Expand Up @@ -1455,12 +1564,47 @@ export namespace ItemCreateParams {
*/
type: 'input_image';

/**
* (Optional) The ID of the file to be sent to the model.
*/
file_id?: string;

/**
* (Optional) URL of the image content
*/
image_url?: string;
}

/**
* File content for input messages in OpenAI response format.
*/
export interface OpenAIResponseInputMessageContentFile {
/**
* The type of the input item. Always `input_file`.
*/
type: 'input_file';

/**
* The data of the file to be sent to the model.
*/
file_data?: string;

/**
* (Optional) The ID of the file to be sent to the model.
*/
file_id?: string;

/**
* The URL of the file to be sent to the model.
*/
file_url?: string;

/**
* The name of the file to be sent to the model.
*/
filename?: string;
}

export interface OpenAIResponseOutputMessageContentOutputText {
annotations: Array<
| OpenAIResponseOutputMessageContentOutputText.OpenAIResponseAnnotationFileCitation
Expand Down
2 changes: 1 addition & 1 deletion src/resources/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export {
type ResponseCreateParamsStreaming,
type ResponseListParams,
} from './responses/responses';
export { Routes, type ListRoutesResponse, type RouteListResponse } from './routes';
export { Routes, type ListRoutesResponse, type RouteListResponse, type RouteListParams } from './routes';
export { Safety, type RunShieldResponse, type SafetyRunShieldParams } from './safety';
export {
Scoring,
Expand Down
2 changes: 1 addition & 1 deletion src/resources/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ export {
type ModelListResponse,
type ModelRegisterParams,
} from './models';
export { OpenAI } from './openai';
export { OpenAI, type OpenAIListResponse } from './openai';
Loading