From 5f8ce91b46c0532c0fdc6beaa898196f94fa1e9f Mon Sep 17 00:00:00 2001 From: buhe Date: Wed, 6 Mar 2024 12:00:27 +0800 Subject: [PATCH] "Refactor BilibiliClient credential in LangChainTests" --- Tests/LangChainTests/langchain_swiftTests.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/LangChainTests/langchain_swiftTests.swift b/Tests/LangChainTests/langchain_swiftTests.swift index 26f2956..045799e 100644 --- a/Tests/LangChainTests/langchain_swiftTests.swift +++ b/Tests/LangChainTests/langchain_swiftTests.swift @@ -74,7 +74,7 @@ Thought: dog } func testBilibilClient() async throws { - let client = BilibiliClient(credential: BilibiliCredential(sessin: "7c987c09%2C1722322455%2Cd8f13%2A21CjB8GNfrlOnsm4mTTEv4_hK764LWdNRZprUKH0iHdXdULinmCU-Bs7Y4YDUX3iKVG7YSVllzWFI5Nm5Za19NbDZsUHhqM0N6aEVEd3V6WFlZejJiM1lQS0UwQ3hpSjVleHlPZ0xwRTg4QkE3RDdiT3ZEeU1CcDlFRTVWal9YUXFaVHRrWFNPQ3pnIIEC", jct: "8b783b43d496a9f215405b4a65eecd6a")) + let client = BilibiliClient(credential: BilibiliCredential(sessin: "e0f5f5ef%2C1725005380%2Cb71c5%2A31CjD3aNTEjUzgdcs3TlxijwG1rF7pYn65uwh1XTuMp0-uwGpqU4K2I6GGjPtEdvioiKcSVjA3ajg4SnJOMXdsa2Zka21yN0JvRmJkeFREOFp0amVvejlFQ0FJT2p1MC1lcGZucTI0QzRnUk5VT09PYVJyZVFzYnFNQ2M0THZJRS1lVzJjem11M1R3IIEC", jct: "b4662a4c178853f2d1a31ef89b53c89a")) let info = await client.fetchVideoInfo(bvid: "BV1iP411y7Vs") XCTAssertNotNil(info) XCTAssertNotEqual(info?.subtitle, "")