Skip to content

Commit

Permalink
Do not print openai settings (langchain-ai#3280)
Browse files Browse the repository at this point in the history
There's no reason to print these settings like that, it just pollutes
the logs :)
  • Loading branch information
psykhi authored and yanghua committed May 9, 2023
1 parent 5b2a0fd commit bbe588a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions langchain/llms/openai.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,8 @@ def validate_environment(cls, values: Dict) -> Dict:

openai.api_key = openai_api_key
if openai_api_base:
print("USING API_BASE: ")
print(openai_api_base)
openai.api_base = openai_api_base
if openai_organization:
print("USING ORGANIZATION: ")
print(openai_organization)
openai.organization = openai_organization
values["client"] = openai.Completion
except ImportError:
Expand Down

0 comments on commit bbe588a

Please sign in to comment.