Skip to content

Commit

Permalink
Update ClientManager.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
acharneski committed Nov 26, 2024
1 parent 64a467c commit e225e04
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit e225e04

Please sign in to comment.