diff --git a/.gitignore b/.gitignore index 7ade791..499587f 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,7 @@ test/test_data.json -/task/ +task/* /test + +# cache +__pycache__/ +core/__pycache__/ \ No newline at end of file diff --git a/__init__.py b/__init__.py index a5741f7..c6cf2a7 100644 --- a/__init__.py +++ b/__init__.py @@ -1 +1 @@ -from core import AsyncCore \ No newline at end of file +from aiDataParser.core import AsyncCore \ No newline at end of file diff --git a/core/__init__.py b/core/__init__.py index c6155c3..a8b6da5 100644 --- a/core/__init__.py +++ b/core/__init__.py @@ -1 +1 @@ -from ai_parser import AsyncCore \ No newline at end of file +from aiDataParser.core.ai_parser import AsyncCore \ No newline at end of file diff --git a/core/ai_parser.py b/core/ai_parser.py index 11bb7b2..60739a3 100644 --- a/core/ai_parser.py +++ b/core/ai_parser.py @@ -15,10 +15,10 @@ class AsyncCore: data_path, output_schema, api_url, - reasoning_effort, - top_p, - temperature, - max_token, + reasoning_effort='low', + top_p=1, + temperature=0.0, + max_token=128000, output_path=None, ai_code_version=None, request_timeout=30, # ثانیه @@ -232,7 +232,6 @@ class AsyncCore: parsed = dict(parsed) parsed["ai_code_version"] = self.ai_code_version parsed["id"] = item["id"] - print(f"parsed") return parsed, 200 except asyncio.TimeoutError: diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..7374963 --- /dev/null +++ b/readme.md @@ -0,0 +1 @@ +python3 -m aiDataParser.task.keyword_extractor.run