Skip to content

Commit

Permalink
Fix broken Decompilation interface in libbs (#50)
Browse files Browse the repository at this point in the history
* Fix broken Decompilation interface in libbs

* bump vers

* Bump min Py version to 3.10

* Bump min Py version to 3.10
  • Loading branch information
mahaloz authored Aug 7, 2024
1 parent 400fc4a commit 6cd555d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.8]
python-version: [3.10.14]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion dailalib/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
__version__ = "3.4.1"
__version__ = "3.4.2"

from .api import AIAPI, LiteLLMAIAPI
from libbs.api import DecompilerInterface
Expand Down
3 changes: 1 addition & 2 deletions dailalib/api/litellm/prompts/prompt.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import json
import typing
import re
from typing import Optional, Union, Dict, Callable
import textwrap
Expand Down Expand Up @@ -48,7 +47,7 @@ def query_model(self, *args, function=None, dec_text=None, use_dec=True, **kwarg
raise Exception("api must be set before querying!")

@AIAPI.requires_function
def _query_model(ai_api=self.ai_api, function=function, dec_text=dec_text, use_dec=use_dec) -> Union[Dict, str]:
def _query_model(ai_api=self.ai_api, function=function, dec_text=dec_text, **_kwargs) -> Union[Dict, str]:
if not ai_api:
return {}

Expand Down
8 changes: 4 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ url = https://github.com/mahaloz/DAILA
classifiers =
License :: OSI Approved :: BSD License
Programming Language :: Python :: 3
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.10
license = BSD 2 Clause
license_files = LICENSE
description = The Decompiler Artificial Intelligence Language Assistant (DAILA) is a tool for adding AI to decompilers.
Expand All @@ -17,9 +17,9 @@ install_requires =
litellm
tiktoken
Jinja2
libbs>=1.17.1
libbs>=1.18.1

python_requires = >= 3.8
python_requires = >= 3.10
include_package_data = True
packages = find:

Expand All @@ -29,4 +29,4 @@ console_scripts =

[options.extras_require]
full =
varbert>=2.1.0
varbert>=2.1.1

0 comments on commit 6cd555d

Please sign in to comment.