Skip to content

Commit

Permalink
"Add TMDBClient.swift and update BilibiliClient credential in langcha…
Browse files Browse the repository at this point in the history
…in_swiftTests.swift"
  • Loading branch information
buhe committed Mar 11, 2024
1 parent 6eb5da2 commit 03030ef
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions Sources/LangChain/utilities/tmdb/TMDBClient.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
//
// File.swift
//
//
// Created by 顾艳华 on 3/11/24.
//

import Foundation

public class TMDBClient {

}
2 changes: 1 addition & 1 deletion Tests/LangChainTests/langchain_swiftTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ Thought: dog
}

func testBilibilClient() async throws {
let client = BilibiliClient(credential: BilibiliCredential(sessin: "e0f5f5ef%2C1725005380%2Cb71c5%2A31CjD3aNTEjUzgdcs3TlxijwG1rF7pYn65uwh1XTuMp0-uwGpqU4K2I6GGjPtEdvioiKcSVjA3ajg4SnJOMXdsa2Zka21yN0JvRmJkeFREOFp0amVvejlFQ0FJT2p1MC1lcGZucTI0QzRnUk5VT09PYVJyZVFzYnFNQ2M0THZJRS1lVzJjem11M1R3IIEC", jct: "b4662a4c178853f2d1a31ef89b53c89a"))
let client = BilibiliClient(credential: BilibiliCredential(sessin: "18fd8de0%2C1725423814%2Cd660c%2A31CjBvcAJdiQipDSyegdKwKZwll8WpFhPWcUa3DTiPuTS0yT-nkNpUKYUY1Lfw9EMeJCYSVlR1c1NzX3BNLVFoU3BrdVVTa3YxWC1YTWpubVBMZzktQnJ1a0kwenRPOFNPQ3JkTFpiZDNxWVNoOElmRE1pT0Z6M3BFTGcyM3Blb0dGVU9NZ3JBVXFBIIEC", jct: "844400cf8502ad24d168297ba93c4f23"))
let info = await client.fetchVideoInfo(bvid: "BV1iP411y7Vs")
XCTAssertNotNil(info)
XCTAssertNotEqual(info?.subtitle, "")
Expand Down

0 comments on commit 03030ef

Please sign in to comment.