File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed
Tests/TestApp/Tests/Integration Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ # Unreleased
2
+ - [ changed] The token counts from ` GenerativeModel.countTokens(...) ` now include
3
+ tokens from the schema for JSON output and function calling; reported token
4
+ counts will now be higher if using these features.
5
+
1
6
# 11.5.0
2
7
- [ fixed] Fixed an issue where ` VertexAI.vertexAI(app: app1) ` and
3
8
` VertexAI.vertexAI(app: app2) ` would return the same instance if their
Original file line number Diff line number Diff line change @@ -217,8 +217,8 @@ final class IntegrationTests: XCTestCase {
217
217
218
218
let response = try await model. countTokens ( prompt)
219
219
220
- XCTAssertEqual ( response. totalTokens, 34 )
221
- XCTAssertEqual ( response. totalBillableCharacters, 59 )
220
+ XCTAssertEqual ( response. totalTokens, 58 )
221
+ XCTAssertEqual ( response. totalBillableCharacters, 160 )
222
222
}
223
223
224
224
func testCountTokens_appCheckNotConfigured_shouldFail( ) async throws {
You can’t perform that action at this time.
0 commit comments