diff --git a/.stats.yml b/.stats.yml index 04214b86..dd14417a 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 213 openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/langsmith%2Flangsmith-api-e11f75dd9a62ef43595016c5f26b93746208dbddef1dc0248f388599ec45aa42.yml openapi_spec_hash: c02b3ce09127fe555d0c216759e3b599 -config_hash: b2ea9aa8d7db0715d4cfe3a95b70ce02 +config_hash: cb2d90e0a9253bb51e8dddd51bd07405 diff --git a/README.md b/README.md index b4db6209..f91fb0aa 100644 --- a/README.md +++ b/README.md @@ -126,13 +126,13 @@ LangsmithClient client = LangsmithOkHttpClient.builder() See this table for the available options: -| Setter | System property | Environment variable | Required | Default value | -| ---------------- | ----------------------------------- | --------------------------- | -------- | --------------------------- | -| `apiKey` | `langchain.langsmithApiKey` | `LANGSMITH_API_KEY` | false | - | -| `tenantId` | `langchain.langsmithTenantId` | `LANGSMITH_TENANT_ID` | false | - | -| `bearerToken` | `langchain.langsmithBearerToken` | `LANGSMITH_BEARER_TOKEN` | false | - | -| `organizationId` | `langchain.langsmithOrganizationId` | `LANGSMITH_ORGANIZATION_ID` | false | - | -| `baseUrl` | `langchain.baseUrl` | `LANGCHAIN_BASE_URL` | true | `"https://api.example.com"` | +| Setter | System property | Environment variable | Required | Default value | +| ---------------- | ----------------------------------- | --------------------------- | -------- | ----------------------------------- | +| `apiKey` | `langchain.langsmithApiKey` | `LANGSMITH_API_KEY` | false | - | +| `tenantId` | `langchain.langsmithTenantId` | `LANGSMITH_TENANT_ID` | false | - | +| `bearerToken` | `langchain.langsmithBearerToken` | `LANGSMITH_BEARER_TOKEN` | false | - | +| `organizationId` | `langchain.langsmithOrganizationId` | `LANGSMITH_ORGANIZATION_ID` | false | - | +| `baseUrl` | `langchain.baseUrl` | `LANGCHAIN_BASE_URL` | true | `"https://api.smith.langchain.com"` | System properties take precedence over environment variables. diff --git a/langsmith-java-client-okhttp/src/main/kotlin/com/langchain/smith/client/okhttp/LangsmithOkHttpClient.kt b/langsmith-java-client-okhttp/src/main/kotlin/com/langchain/smith/client/okhttp/LangsmithOkHttpClient.kt index aa5c68c7..fc31bc61 100644 --- a/langsmith-java-client-okhttp/src/main/kotlin/com/langchain/smith/client/okhttp/LangsmithOkHttpClient.kt +++ b/langsmith-java-client-okhttp/src/main/kotlin/com/langchain/smith/client/okhttp/LangsmithOkHttpClient.kt @@ -144,7 +144,7 @@ class LangsmithOkHttpClient private constructor() { /** * The base URL to use for every request. * - * Defaults to the production environment: `https://api.example.com`. + * Defaults to the production environment: `https://api.smith.langchain.com`. */ fun baseUrl(baseUrl: String?) = apply { clientOptions.baseUrl(baseUrl) } diff --git a/langsmith-java-client-okhttp/src/main/kotlin/com/langchain/smith/client/okhttp/LangsmithOkHttpClientAsync.kt b/langsmith-java-client-okhttp/src/main/kotlin/com/langchain/smith/client/okhttp/LangsmithOkHttpClientAsync.kt index b85533eb..c3b22dec 100644 --- a/langsmith-java-client-okhttp/src/main/kotlin/com/langchain/smith/client/okhttp/LangsmithOkHttpClientAsync.kt +++ b/langsmith-java-client-okhttp/src/main/kotlin/com/langchain/smith/client/okhttp/LangsmithOkHttpClientAsync.kt @@ -144,7 +144,7 @@ class LangsmithOkHttpClientAsync private constructor() { /** * The base URL to use for every request. * - * Defaults to the production environment: `https://api.example.com`. + * Defaults to the production environment: `https://api.smith.langchain.com`. */ fun baseUrl(baseUrl: String?) = apply { clientOptions.baseUrl(baseUrl) } diff --git a/langsmith-java-core/src/main/kotlin/com/langchain/smith/core/ClientOptions.kt b/langsmith-java-core/src/main/kotlin/com/langchain/smith/core/ClientOptions.kt index 51a43007..b814b410 100644 --- a/langsmith-java-core/src/main/kotlin/com/langchain/smith/core/ClientOptions.kt +++ b/langsmith-java-core/src/main/kotlin/com/langchain/smith/core/ClientOptions.kt @@ -108,7 +108,7 @@ private constructor( /** * The base URL to use for every request. * - * Defaults to the production environment: `https://api.example.com`. + * Defaults to the production environment: `https://api.smith.langchain.com`. */ fun baseUrl(): String = baseUrl ?: PRODUCTION_URL @@ -128,7 +128,7 @@ private constructor( companion object { - const val PRODUCTION_URL = "https://api.example.com" + const val PRODUCTION_URL = "https://api.smith.langchain.com" /** * Returns a mutable builder for constructing an instance of [ClientOptions]. @@ -239,7 +239,7 @@ private constructor( /** * The base URL to use for every request. * - * Defaults to the production environment: `https://api.example.com`. + * Defaults to the production environment: `https://api.smith.langchain.com`. */ fun baseUrl(baseUrl: String?) = apply { this.baseUrl = baseUrl } @@ -402,13 +402,13 @@ private constructor( * * See this table for the available options: * - * |Setter |System property |Environment variable |Required|Default value | - * |----------------|-----------------------------------|---------------------------|--------|---------------------------| - * |`apiKey` |`langchain.langsmithApiKey` |`LANGSMITH_API_KEY` |false |- | - * |`tenantId` |`langchain.langsmithTenantId` |`LANGSMITH_TENANT_ID` |false |- | - * |`bearerToken` |`langchain.langsmithBearerToken` |`LANGSMITH_BEARER_TOKEN` |false |- | - * |`organizationId`|`langchain.langsmithOrganizationId`|`LANGSMITH_ORGANIZATION_ID`|false |- | - * |`baseUrl` |`langchain.baseUrl` |`LANGCHAIN_BASE_URL` |true |`"https://api.example.com"`| + * |Setter |System property |Environment variable |Required|Default value | + * |----------------|-----------------------------------|---------------------------|--------|-----------------------------------| + * |`apiKey` |`langchain.langsmithApiKey` |`LANGSMITH_API_KEY` |false |- | + * |`tenantId` |`langchain.langsmithTenantId` |`LANGSMITH_TENANT_ID` |false |- | + * |`bearerToken` |`langchain.langsmithBearerToken` |`LANGSMITH_BEARER_TOKEN` |false |- | + * |`organizationId`|`langchain.langsmithOrganizationId`|`LANGSMITH_ORGANIZATION_ID`|false |- | + * |`baseUrl` |`langchain.baseUrl` |`LANGCHAIN_BASE_URL` |true |`"https://api.smith.langchain.com"`| * * System properties take precedence over environment variables. */