Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .sdk-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.0.0
v3.1.1
1 change: 1 addition & 0 deletions docs/ConfigResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Name | Type | Description | Notes
**dashboard_url** | **str** | The domain of the RevEng.AI platform you are connected to | [optional] [default to '']
**max_file_size_bytes** | **int** | Maximum file size (in bytes) that can be uploaded for analysis |
**ai_decompiler_unsupported_languages** | **List[str]** | List of programming languages that are not supported for AI decompilation |
**ai_decompiler_supported_models** | **List[str]** | List of models that support AI decompilation |

## Example

Expand Down
2 changes: 1 addition & 1 deletion revengai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
""" # noqa: E501


__version__ = "v3.0.0"
__version__ = "v3.1.1"

# Define package exports
__all__ = [
Expand Down
2 changes: 1 addition & 1 deletion revengai/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
self.user_agent = 'OpenAPI-Generator/v3.0.0/python'
self.user_agent = 'OpenAPI-Generator/v3.1.1/python'
self.client_side_validation = configuration.client_side_validation

def __enter__(self):
Expand Down
4 changes: 2 additions & 2 deletions revengai/configuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -533,8 +533,8 @@ def to_debug_report(self) -> str:
return "Python SDK Debug Report:\n"\
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: v3.0.0\n"\
"SDK Package Version: v3.0.0".\
"Version of the API: v3.1.1\n"\
"SDK Package Version: v3.1.1".\
format(env=sys.platform, pyversion=sys.version)

def get_host_settings(self) -> List[HostSetting]:
Expand Down
6 changes: 4 additions & 2 deletions revengai/models/config_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ class ConfigResponse(BaseModel):
dashboard_url: Optional[StrictStr] = Field(default='', description="The domain of the RevEng.AI platform you are connected to")
max_file_size_bytes: StrictInt = Field(description="Maximum file size (in bytes) that can be uploaded for analysis")
ai_decompiler_unsupported_languages: List[StrictStr] = Field(description="List of programming languages that are not supported for AI decompilation")
__properties: ClassVar[List[str]] = ["dashboard_url", "max_file_size_bytes", "ai_decompiler_unsupported_languages"]
ai_decompiler_supported_models: List[StrictStr] = Field(description="List of models that support AI decompilation")
__properties: ClassVar[List[str]] = ["dashboard_url", "max_file_size_bytes", "ai_decompiler_unsupported_languages", "ai_decompiler_supported_models"]

model_config = ConfigDict(
populate_by_name=True,
Expand Down Expand Up @@ -83,7 +84,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
_obj = cls.model_validate({
"dashboard_url": obj.get("dashboard_url") if obj.get("dashboard_url") is not None else '',
"max_file_size_bytes": obj.get("max_file_size_bytes"),
"ai_decompiler_unsupported_languages": obj.get("ai_decompiler_unsupported_languages")
"ai_decompiler_unsupported_languages": obj.get("ai_decompiler_unsupported_languages"),
"ai_decompiler_supported_models": obj.get("ai_decompiler_supported_models")
})
return _obj

Expand Down
3 changes: 3 additions & 0 deletions test/test_base_response_config_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ def make_instance(self, include_optional) -> BaseResponseConfigResponse:
dashboard_url = '',
max_file_size_bytes = 56,
ai_decompiler_unsupported_languages = [
''
],
ai_decompiler_supported_models = [
''
], ),
message = '',
Expand Down
6 changes: 6 additions & 0 deletions test/test_config_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ def make_instance(self, include_optional) -> ConfigResponse:
dashboard_url = '',
max_file_size_bytes = 56,
ai_decompiler_unsupported_languages = [
''
],
ai_decompiler_supported_models = [
''
]
)
Expand All @@ -46,6 +49,9 @@ def make_instance(self, include_optional) -> ConfigResponse:
ai_decompiler_unsupported_languages = [
''
],
ai_decompiler_supported_models = [
''
],
)
"""

Expand Down