Skip to content

Commit

Permalink
Merge branch 'main' into refactor/example-resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
neubig authored Nov 22, 2024
2 parents 7b65da3 + 83add62 commit f8badfa
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 113 deletions.
113 changes: 16 additions & 97 deletions frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@
"eslint-config-airbnb-typescript": "^18.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-jsx-a11y": "^6.9.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-react": "^7.35.0",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react-hooks": "^4.6.2",
"husky": "^9.1.6",
"jsdom": "^25.0.1",
Expand Down
16 changes: 2 additions & 14 deletions openhands/llm/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,20 +108,8 @@ def __init__(
)
os.makedirs(self.config.log_completions_folder, exist_ok=True)

self._completion = partial(
litellm_completion,
model=self.config.model,
api_key=self.config.api_key,
base_url=self.config.base_url,
api_version=self.config.api_version,
custom_llm_provider=self.config.custom_llm_provider,
max_tokens=self.config.max_output_tokens,
timeout=self.config.timeout,
temperature=self.config.temperature,
top_p=self.config.top_p,
drop_params=self.config.drop_params,
)

# call init_model_info to initialize config.max_output_tokens
# which is used in partial function
with warnings.catch_warnings():
warnings.simplefilter('ignore')
self.init_model_info()
Expand Down

0 comments on commit f8badfa

Please sign in to comment.