You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseValueError("The `api_key` and `bearer_token_provider` arguments are mutually exclusive")
134
132
ifapi_keyisNone:
135
133
api_key=os.environ.get("OPENAI_API_KEY")
136
-
ifapi_keyisNoneandbearer_token_providerisNone:
134
+
ifapi_keyisNone:
137
135
raiseOpenAIError(
138
-
"The api_key or bearer_token_provider client option must be set either by passing api_key or bearer_token_provider to the client or by setting the OPENAI_API_KEY environment variable"
136
+
"The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable"
raiseValueError("The `api_key` and `bearer_token_provider` arguments are mutually exclusive")
480
474
ifapi_keyisNone:
481
475
api_key=os.environ.get("OPENAI_API_KEY")
482
-
ifapi_keyisNoneandbearer_token_providerisNone:
476
+
ifapi_keyisNone:
483
477
raiseOpenAIError(
484
-
"The api_key or bearer_token_provider client option must be set either by passing api_key or bearer_token_provider to the client or by setting the OPENAI_API_KEY environment variable"
478
+
"The api_key client option must be set either by passing api_key to the client or by setting the OPENAI_API_KEY environment variable"
0 commit comments