Skip to content

Commit

Permalink
chore: Update .codegen.json with commit hash of codegen and `open…
Browse files Browse the repository at this point in the history
…api` spec (#246)
  • Loading branch information
box-sdk-build authored Sep 30, 2024
1 parent 9b5d6e9 commit d5b93b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .codegen.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{ "engineHash": "0338480", "specHash": "d9f90b8", "version": "0.5.0" }
{ "engineHash": "a8a741c", "specHash": "6b64d06", "version": "0.5.0" }
2 changes: 1 addition & 1 deletion Tests/Ai/AiManagerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ class AiManagerTests: XCTestCase {
public func testAiExtract() async throws {
let uploadedFiles: Files = try await client.uploads.uploadFile(requestBody: UploadFileRequestBody(attributes: UploadFileRequestBodyAttributesField(name: "\(Utils.getUUID())\(".txt")", parent: UploadFileRequestBodyAttributesParentField(id: "0")), file: Utils.stringToByteStream(text: "My name is John Doe. I live in San Francisco. I was born in 1990. I work at Box.")))
let file: FileFull = uploadedFiles.entries![0]
try await Utils.delayInSeconds(seconds: 1)
try await Utils.delayInSeconds(seconds: 5)
let response: AiResponse = try await client.ai.createAiExtract(requestBody: AiExtract(prompt: "firstName, lastName, location, yearOfBirth, company", items: [AiItemBase(id: file.id)]))
let expectedResponse: String = "{\"firstName\": \"John\", \"lastName\": \"Doe\", \"location\": \"San Francisco\", \"yearOfBirth\": \"1990\", \"company\": \"Box\"}"
XCTAssertTrue(response.answer == expectedResponse)
Expand Down

0 comments on commit d5b93b5

Please sign in to comment.