all valid and ready for use

This commit is contained in:
init_mahdi 2025-11-05 18:10:51 +00:00
parent bd85df3f23
commit e03ff369b3
5 changed files with 12 additions and 8 deletions

6
.gitignore vendored
View File

@ -1,3 +1,7 @@
test/test_data.json
/task/
task/*
/test
# cache
__pycache__/
core/__pycache__/

View File

@ -1 +1 @@
from core import AsyncCore
from aiDataParser.core import AsyncCore

View File

@ -1 +1 @@
from ai_parser import AsyncCore
from aiDataParser.core.ai_parser import AsyncCore

View File

@ -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:

1
readme.md Normal file
View File

@ -0,0 +1 @@
python3 -m aiDataParser.task.keyword_extractor.run