Skip to content

Env

Namespace: TypeSafe.AI.Sdk

public static class Env

Environment variable names used when constructing TypeSafeClient. Explicit constructor options take precedence over these values. Empty or whitespace-only values are ignored.

Inheritance: object

View source

public const string ApiKey = "TYPESAFE_API_KEY"

Required API key; used when ApiKey is omitted.

Value: string

View source

public const string BaseUrl = "TYPESAFE_BASE_URL"

API root; defaults to https://api.typesafe.ai.

Value: string

View source

public const string DefaultModel = "TYPESAFE_DEFAULT_MODEL"

Default model name; defaults to jev-latest.

Value: string

View source

public const string LogLevel = "TYPESAFE_LOG_LEVEL"

Log level; defaults to warn.

Value: string

View source

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

View source

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

View source

MIT · Copyright (c) Dario Kondratiuk. · not affiliated with TypeSafe beyond being a client of the public API