Skip to content

Commit 4be82b3

Browse files
russellwheatleymikehardy
authored andcommitted
docs(ai): inline documentation for countToken()
1 parent eb820bb commit 4be82b3

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

packages/ai/lib/methods/count-tokens.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ import { ApiSettings } from '../types/internal';
2121
import { BackendType } from '../public-types';
2222
import * as GoogleAIMapper from '../googleai-mappers';
2323

24+
/**
25+
* Counts the number of tokens in a request body.
26+
*
27+
* @param apiSettings The {@link ApiSettings} to use for the request.
28+
* @param model The model to use for the request.
29+
* @param params The {@link CountTokensRequest} to send.
30+
* @param requestOptions The {@link RequestOptions} to use for the request.
31+
* @returns The {@link CountTokensResponse} from the request.
32+
*/
2433
export async function countTokens(
2534
apiSettings: ApiSettings,
2635
model: string,

0 commit comments

Comments
 (0)