Kory
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
Kory
core
/
io.kory.core.chat.client
/
ApiKey
/
Companion
Companion
object
Companion
Members
Functions
from
Env
Link copied to clipboard
fun
fromEnv
(
customName
:
String
=
"AI_API_KEY"
,
onNotFound
:
(
KeyNotFoundException
)
->
String
?
=
null
)
:
ApiKey
Creates an
ApiKey
from an environment variable.