AIApiSettings
object AIApiSettings
Convenience factory for common AI API configuration fields (base URL, model, API key).
Usage in UniversalAppEntry.userSettings:
override fun userSettings() = AIApiSettings.fields(
defaultBaseUrl = "https://api.openai.com/v1/",
defaultModel = "gpt-4o",
)Content copied to clipboard
Reading values in a UniversalCommand.run:
val baseUrl = AIApiSettings.baseUrl(ctx.settings)
val model = AIApiSettings.model(ctx.settings)
val apiKey = AIApiSettings.apiKey(ctx.settings)Content copied to clipboard