Env
Namespace: TypeSafe.AI.Sdk
public static class EnvEnvironment variable names used when constructing TypeSafeClient. Explicit constructor options take precedence over these values. Empty or whitespace-only values are ignored.
Inheritance: object
Fields
Section titled “Fields”ApiKey
Section titled “ApiKey”public const string ApiKey = "TYPESAFE_API_KEY"Required API key; used when ApiKey is omitted.
Value: string
BaseUrl
Section titled “BaseUrl”public const string BaseUrl = "TYPESAFE_BASE_URL"API root; defaults to https://api.typesafe.ai.
Value: string
DefaultModel
Section titled “DefaultModel”public const string DefaultModel = "TYPESAFE_DEFAULT_MODEL"Default model name; defaults to jev-latest.
Value: string
LogLevel
Section titled “LogLevel”public const string LogLevel = "TYPESAFE_LOG_LEVEL"Log level; defaults to warn.
Value: string
Methods
Section titled “Methods”FromCodeOrEnv(string?, string)
Section titled “FromCodeOrEnv(string?, string)”public static string? FromCodeOrEnv(string? fromCode, string envVar)Return the explicit value, falling back to the environment.
Parameters
| Name | Type | Description |
|---|---|---|
fromCode |
string | |
envVar |
string |
Returns: string
Read(string)
Section titled “Read(string)”public static string? Read(string name)Read a trimmed environment value, returning null for missing or blank values.
Parameters
| Name | Type | Description |
|---|---|---|
name |
string |
Returns: string
MIT · Copyright (c) Dario Kondratiuk. · not affiliated with TypeSafe beyond being a client of the public API