We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 595fcd0 commit 567af0cCopy full SHA for 567af0c
1 file changed
langsmith-java-core/src/main/kotlin/com/langchain/smith/core/ClientOptions.kt
@@ -457,6 +457,14 @@ private constructor(
457
(System.getProperty("langchain.langsmithOrganizationId")
458
?: System.getenv("LANGSMITH_ORGANIZATION_ID"))
459
?.let { organizationId(it) }
460
+ System.getenv("LANGCHAIN_CUSTOM_HEADERS")?.let { customHeadersEnv ->
461
+ for (line in customHeadersEnv.split("\n")) {
462
+ val colon = line.indexOf(':')
463
+ if (colon >= 0) {
464
+ putHeader(line.substring(0, colon).trim(), line.substring(colon + 1).trim())
465
+ }
466
467
468
}
469
470
/**
0 commit comments