Skip to content

Commit 1f53aed

Browse files
committed
missing type update
1 parent c02021b commit 1f53aed

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

packages/alphawave/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "alphawave",
33
"author": "Steven Ickman",
44
"description": "A very opinionated client for interfacing with Large Language Models.",
5-
"version": "0.19.0",
5+
"version": "0.19.1",
66
"license": "MIT",
77
"keywords": [
88
"ai",

packages/alphawave/src/types.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ export interface EmbeddingsModel {
1919
* `success` - The embeddings were successfully created.
2020
* `error` - An error occurred while creating the embeddings.
2121
* `rate_limited` - The request was rate limited.
22+
* `cancelled` - The request was cancelled.
2223
*/
2324
export type EmbeddingsResponseStatus = 'success' | 'error' | 'rate_limited' | 'cancelled';
2425

@@ -81,8 +82,9 @@ export interface PromptResponseValidator<TContent = any> {
8182
* `rate_limited` - The request was rate limited.
8283
* `invalid_response` - The response was invalid.
8384
* `too_long` - The rendered prompt exceeded the `max_input_tokens` limit.
85+
* `cancelled` - The prompt was cancelled.
8486
*/
85-
export type PromptResponseStatus = 'success' | 'error' | 'rate_limited' | 'invalid_response' | 'too_long';
87+
export type PromptResponseStatus = 'success' | 'error' | 'rate_limited' | 'invalid_response' | 'too_long' | 'cancelled';
8688

8789
/**
8890
* Response returned by a `PromptCompletionClient`.

0 commit comments

Comments
 (0)