buzzCraft commited on
Commit
2397c44
2 Parent(s): 3e34a17 fd4f795

Merge pull request #1 from simula/langsmith_fix

Browse files
Files changed (2) hide show
  1. src/extractor.py +1 -1
  2. src/sql_chain.py +1 -1
src/extractor.py CHANGED
@@ -28,7 +28,7 @@ os.environ["OPENAI_API_KEY"] = os.getenv('OPENAI_API_KEY')
28
  # os.environ["ANTHROPIC_API_KEY"] = os.getenv('ANTHROPIC_API_KEY')
29
 
30
  if os.getenv('LANGSMITH'):
31
- os.environ['LANGCHAIN_TRACING_V2'] = 'false'
32
  os.environ['LANGCHAIN_ENDPOINT'] = 'https://api.smith.langchain.com'
33
  os.environ[
34
  'LANGCHAIN_API_KEY'] = os.getenv("LANGSMITH_API_KEY")
 
28
  # os.environ["ANTHROPIC_API_KEY"] = os.getenv('ANTHROPIC_API_KEY')
29
 
30
  if os.getenv('LANGSMITH'):
31
+ os.environ['LANGCHAIN_TRACING_V2'] = 'true'
32
  os.environ['LANGCHAIN_ENDPOINT'] = 'https://api.smith.langchain.com'
33
  os.environ[
34
  'LANGCHAIN_API_KEY'] = os.getenv("LANGSMITH_API_KEY")
src/sql_chain.py CHANGED
@@ -25,7 +25,7 @@ logger = logging.getLogger(__name__)
25
  os.environ["OPENAI_API_KEY"] = os.getenv('OPENAI_API_KEY')
26
 
27
  if os.getenv('LANGSMITH'):
28
- os.environ['LANGCHAIN_TRACING_V2'] = 'false'
29
  os.environ['LANGCHAIN_ENDPOINT'] = 'https://api.smith.langchain.com'
30
  os.environ[
31
  'LANGCHAIN_API_KEY'] = os.getenv("LANGSMITH_API_KEY")
 
25
  os.environ["OPENAI_API_KEY"] = os.getenv('OPENAI_API_KEY')
26
 
27
  if os.getenv('LANGSMITH'):
28
+ os.environ['LANGCHAIN_TRACING_V2'] = 'true'
29
  os.environ['LANGCHAIN_ENDPOINT'] = 'https://api.smith.langchain.com'
30
  os.environ[
31
  'LANGCHAIN_API_KEY'] = os.getenv("LANGSMITH_API_KEY")