Skip to content

Commit 47eb9fa

Browse files
committed
put key back
1 parent 04874ab commit 47eb9fa

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/integrations/langchain/test_langchain.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ def test_langchain_agent(
157157
llm = MockOpenAI(
158158
model_name="gpt-3.5-turbo",
159159
temperature=0,
160+
openai_api_key="badkey",
160161
)
161162
agent = create_openai_tools_agent(llm, [get_word_length], prompt)
162163

@@ -230,6 +231,7 @@ def test_langchain_error(sentry_init, capture_events):
230231
llm = MockOpenAI(
231232
model_name="gpt-3.5-turbo",
232233
temperature=0,
234+
openai_api_key="badkey",
233235
)
234236
agent = create_openai_tools_agent(llm, [get_word_length], prompt)
235237

@@ -324,6 +326,7 @@ def test_span_origin(sentry_init, capture_events):
324326
llm = MockOpenAI(
325327
model_name="gpt-3.5-turbo",
326328
temperature=0,
329+
openai_api_key="badkey",
327330
)
328331
agent = create_openai_tools_agent(llm, [get_word_length], prompt)
329332

0 commit comments

Comments
 (0)