mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
Fix resolver linting issues (#6401)
Co-authored-by: openhands <openhands@all-hands.dev>
This commit is contained in:
parent
9912e28576
commit
081a1305f0
@ -18,3 +18,4 @@ class GithubIssue(BaseModel):
|
||||
review_threads: list[ReviewThread] | None = None
|
||||
thread_ids: list[str] | None = None
|
||||
head_branch: str | None = None
|
||||
base_branch: str | None = None
|
||||
|
||||
@ -331,9 +331,10 @@ def main():
|
||||
if not token:
|
||||
raise ValueError('Github token is required.')
|
||||
|
||||
api_key = my_args.llm_api_key or os.environ['LLM_API_KEY']
|
||||
llm_config = LLMConfig(
|
||||
model=my_args.llm_model or os.environ['LLM_MODEL'],
|
||||
api_key=my_args.llm_api_key or os.environ['LLM_API_KEY'],
|
||||
api_key=str(api_key) if api_key else None,
|
||||
base_url=my_args.llm_base_url or os.environ.get('LLM_BASE_URL', None),
|
||||
)
|
||||
|
||||
|
||||
@ -601,9 +601,10 @@ def main():
|
||||
if not token:
|
||||
raise ValueError('Github token is required.')
|
||||
|
||||
api_key = my_args.llm_api_key or os.environ['LLM_API_KEY']
|
||||
llm_config = LLMConfig(
|
||||
model=my_args.llm_model or os.environ['LLM_MODEL'],
|
||||
api_key=my_args.llm_api_key or os.environ['LLM_API_KEY'],
|
||||
api_key=str(api_key) if api_key else None,
|
||||
base_url=my_args.llm_base_url or os.environ.get('LLM_BASE_URL', None),
|
||||
)
|
||||
|
||||
|
||||
@ -719,9 +719,10 @@ def main():
|
||||
else os.getenv('GITHUB_USERNAME')
|
||||
)
|
||||
|
||||
api_key = my_args.llm_api_key or os.environ['LLM_API_KEY']
|
||||
llm_config = LLMConfig(
|
||||
model=my_args.llm_model or os.environ['LLM_MODEL'],
|
||||
api_key=my_args.llm_api_key or os.environ['LLM_API_KEY'],
|
||||
api_key=str(api_key) if api_key else None,
|
||||
base_url=my_args.llm_base_url or os.environ.get('LLM_BASE_URL', None),
|
||||
)
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user