File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/seclab_taskflow_agent Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 66import argparse
77import os
88import sys
9- from dotenv import load_dotenv
9+ from dotenv import load_dotenv , find_dotenv
1010import logging
1111from logging .handlers import RotatingFileHandler
1212from pprint import pprint , pformat
3434from .capi import list_tool_call_models
3535from .available_tools import AvailableTools
3636
37- load_dotenv ()
37+ load_dotenv (find_dotenv ( usecwd = True ) )
3838
3939# only model output or help message should go to stdout, everything else goes to log
4040logging .getLogger ('' ).setLevel (logging .NOTSET )
Original file line number Diff line number Diff line change 44# https://openai.github.io/openai-agents-python/agents/
55import os
66import logging
7- from dotenv import load_dotenv
7+ from dotenv import load_dotenv , find_dotenv
88from collections .abc import Callable
99from typing import Any
1010from urllib .parse import urlparse
1818from .capi import COPILOT_INTEGRATION_ID , COPILOT_API_ENDPOINT
1919
2020# grab our secrets from .env, this must be in .gitignore
21- load_dotenv ()
21+ load_dotenv (find_dotenv ( usecwd = True ) )
2222
2323match urlparse (COPILOT_API_ENDPOINT ).netloc :
2424 case 'api.githubcopilot.com' :
You can’t perform that action at this time.
0 commit comments