From e225e0481a48c2a56db05473b467cf3391c2bf89 Mon Sep 17 00:00:00 2001 From: Andrew Charneski Date: Mon, 25 Nov 2024 20:40:14 -0500 Subject: [PATCH] Update ClientManager.kt --- .../skyenet/core/platform/ClientManager.kt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/main/kotlin/com/simiacryptus/skyenet/core/platform/ClientManager.kt b/core/src/main/kotlin/com/simiacryptus/skyenet/core/platform/ClientManager.kt index cee771a6..461e484b 100644 --- a/core/src/main/kotlin/com/simiacryptus/skyenet/core/platform/ClientManager.kt +++ b/core/src/main/kotlin/com/simiacryptus/skyenet/core/platform/ClientManager.kt @@ -151,9 +151,9 @@ open class ClientManager { val userApi = if (userSettings.apiKeys.isNotEmpty()) { OpenAIClient( - key = userSettings.apiKeys, - apiBase = userSettings.apiBase, - workPool = getPool(session, user), + key = userSettings.apiKeys, + apiBase = userSettings.apiBase, + workPool = getPool(session, user), ).apply { this.session = session this.user = user @@ -168,8 +168,8 @@ open class ClientManager { if (!canUseGlobalKey) throw RuntimeException("No API key") return (if (ClientUtil.keyMap.isNotEmpty()) { OpenAIClient( - key = ClientUtil.keyMap.mapKeys { APIProvider.valueOf(it.key) }, - workPool = getPool(session, user), + key = ClientUtil.keyMap.mapKeys { APIProvider.valueOf(it.key) }, + workPool = getPool(session, user), ).apply { this.session = session this.user = user