Skip to content

Commit 083464b

Browse files
authored
feat: add tokenLimits to model interface (#721)
## Problem We need `maxInputTokens` field (used for dynamically calculating max characters, generate assistant response input limit, etc) ## Solution Add `maxInputTokens` field <!--- REMINDER: - Read CONTRIBUTING.md first. - Add test coverage for your changes. - Link to related issues/commits. - Testing: how did you test your changes? - Screenshots if applicable --> ## License By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 56b402d commit 083464b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

types/chat.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,10 +724,16 @@ export interface PromptInputOptionChangeParams {
724724
eventId?: string
725725
}
726726

727+
export interface TokenLimits {
728+
maxInputTokens?: number
729+
maxOutputTokens?: number
730+
}
731+
727732
export interface Model {
728733
id: string
729734
name: string
730735
description?: string
736+
tokenLimits?: TokenLimits
731737
}
732738

733739
export interface ListAvailableModelsParams {

0 commit comments

Comments
 (0)