pilot.linkstec 0.0.112__py3-none-any.whl → 0.0.114__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pilot/generater/lmstudioai.py +2 -2
- pilot/job/base/generate/generatePromptBaseJob.py +1 -1
- pilot/job/base/generate/generateTextBaseJob.py +1 -1
- pilot/job/impl/base_job.py +8 -0
- {pilot_linkstec-0.0.112.dist-info → pilot_linkstec-0.0.114.dist-info}/METADATA +1 -1
- {pilot_linkstec-0.0.112.dist-info → pilot_linkstec-0.0.114.dist-info}/RECORD +9 -9
- {pilot_linkstec-0.0.112.dist-info → pilot_linkstec-0.0.114.dist-info}/WHEEL +0 -0
- {pilot_linkstec-0.0.112.dist-info → pilot_linkstec-0.0.114.dist-info}/licenses/LICENSE +0 -0
- {pilot_linkstec-0.0.112.dist-info → pilot_linkstec-0.0.114.dist-info}/top_level.txt +0 -0
pilot/generater/lmstudioai.py
CHANGED
|
@@ -8,7 +8,7 @@ class lmstudioAISingleton(AIBase):
|
|
|
8
8
|
_instance: Optional['lmstudioAISingleton'] = None
|
|
9
9
|
_lock = threading.Lock()
|
|
10
10
|
|
|
11
|
-
def __new__(cls):
|
|
11
|
+
def __new__(cls,model_name,base_url):
|
|
12
12
|
if cls._instance is None:
|
|
13
13
|
with cls._lock:
|
|
14
14
|
if cls._instance is None:
|
|
@@ -16,7 +16,7 @@ class lmstudioAISingleton(AIBase):
|
|
|
16
16
|
cls._instance._initialized = False
|
|
17
17
|
return cls._instance
|
|
18
18
|
|
|
19
|
-
def __init__(self, model_name
|
|
19
|
+
def __init__(self, model_name,base_url):
|
|
20
20
|
if not self._initialized:
|
|
21
21
|
with self._lock:
|
|
22
22
|
if not self._initialized:
|
|
@@ -15,7 +15,7 @@ class GeneratePromptBaseJob(BaseJob):
|
|
|
15
15
|
|
|
16
16
|
def run(self):
|
|
17
17
|
if self.prompt_file_path is None:
|
|
18
|
-
self.prompt_file_path = self.
|
|
18
|
+
self.prompt_file_path = self.get_new_extension_file_path(self.file_path, 'prompt')
|
|
19
19
|
cwd = os.getcwd()
|
|
20
20
|
self.template_file_path.insert(0, cwd)
|
|
21
21
|
template = os.path.join(*self.template_file_path)
|
|
@@ -19,7 +19,7 @@ class GenerateTextBaseJob(BaseJob):
|
|
|
19
19
|
if prompt is None or prompt == '':
|
|
20
20
|
prompt = self.get_file_content()
|
|
21
21
|
if self.result_file_path is None:
|
|
22
|
-
self.result_file_path = self.
|
|
22
|
+
self.result_file_path = self.get_new_extension_file_path(self.file_path, self.result_extension)
|
|
23
23
|
# トークン数チェック
|
|
24
24
|
vera_ai = VeraSingleton.get_instance()
|
|
25
25
|
#token_count = vertexai.count_tokens(prompt)
|
pilot/job/impl/base_job.py
CHANGED
|
@@ -376,3 +376,11 @@ class BaseJob(JobInterface):
|
|
|
376
376
|
new_path = p.with_suffix(new_ext) # 例: ".csv"
|
|
377
377
|
p.rename(new_path)
|
|
378
378
|
return str(new_path)
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
def get_new_extension_file_path(self,file_path: str, new_ext: str) -> str:
|
|
382
|
+
p = Path(file_path)
|
|
383
|
+
if not new_ext.startswith('.'):
|
|
384
|
+
new_ext = '.' + new_ext
|
|
385
|
+
new_path = p.with_suffix(new_ext) # 例: ".csv"
|
|
386
|
+
return str(new_path)
|
|
@@ -45,7 +45,7 @@ pilot/file_tool/json_file_tool.py,sha256=v-qVcyKVhFfwEg4uJWDFMZU0EWvOwkYhrwhm-ob
|
|
|
45
45
|
pilot/generater/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
46
46
|
pilot/generater/ai_base.py,sha256=V-NSC--BfW8Q5Kn56B_kfyAQL3wL7n1rR6srKgnNWJA,192
|
|
47
47
|
pilot/generater/ai_interface.py,sha256=NxoXWa9NWAKkN5kGOIZsK4dCCJlOLii1d-v8PcJ9BYk,193
|
|
48
|
-
pilot/generater/lmstudioai.py,sha256=
|
|
48
|
+
pilot/generater/lmstudioai.py,sha256=2RPQ9ZisCCGc_tnybmx_rGaaNic0FqHiEpgYktZcxZ4,3818
|
|
49
49
|
pilot/generater/vera.py,sha256=5TTaRwKQQMZUA-4OMuvAGdPIeOAHc2eDTsh7tluFORc,3566
|
|
50
50
|
pilot/generater/vertexai.py,sha256=UBVGPGjGb63wPeo8SLpj2X5g_wIHlPVgaewIOaT2ISw,3902
|
|
51
51
|
pilot/job/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -57,8 +57,8 @@ pilot/job/base/convert/encodingTransformerJob.py,sha256=P6txCqAcQ4w999ttA_gmA4VK
|
|
|
57
57
|
pilot/job/base/convert/tabReplaceJob.py,sha256=FtPLbWwDPgH1jGsK3y5_sY4lAZ4Lhsv7GQ-1A-QgAFE,743
|
|
58
58
|
pilot/job/base/generate/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
59
59
|
pilot/job/base/generate/generateJsonBaseJob.py,sha256=0sWNqvfV-1DgsNjyD_GUBHogjQPNRdcqx0siNNFnSsE,1208
|
|
60
|
-
pilot/job/base/generate/generatePromptBaseJob.py,sha256=
|
|
61
|
-
pilot/job/base/generate/generateTextBaseJob.py,sha256=
|
|
60
|
+
pilot/job/base/generate/generatePromptBaseJob.py,sha256=svHnikz_QrVJEEhB03Q4Pn7BPCcjRlYcwZ1PEMNkNME,736
|
|
61
|
+
pilot/job/base/generate/generateTextBaseJob.py,sha256=JeMsAmTz1CygVeVujX5bcBaK3q8dK612OMlG24SvyVY,1412
|
|
62
62
|
pilot/job/base/program/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
63
63
|
pilot/job/base/program/cobol/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
64
64
|
pilot/job/base/program/cobol/convert/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -66,7 +66,7 @@ pilot/job/base/program/cobol/convert/spitPreDigit.py,sha256=uGmIKOSaxNmPkzy45i0w
|
|
|
66
66
|
pilot/job/base/program/java/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
67
67
|
pilot/job/base/program/java/generateDetailDesignPrompt.py,sha256=JcXxRQeJPpFNhli1nWOOxh8ZTdp_IN3-OoFQahHprjs,5651
|
|
68
68
|
pilot/job/impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
69
|
-
pilot/job/impl/base_job.py,sha256=
|
|
69
|
+
pilot/job/impl/base_job.py,sha256=IpCl-sjp9iG4o6oLZ6Dy6TvEC1kSvb_cTYsJh5MJd-I,15667
|
|
70
70
|
pilot/logging/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
71
71
|
pilot/logging/logger.py,sha256=TF7eGr3w8GK5v4sf71lDt97uVoBtCgqrZuCdbMmeQBU,1815
|
|
72
72
|
pilot/prompt/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -78,8 +78,8 @@ pilot/unit/impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
78
78
|
pilot/unit/impl/base_unit.py,sha256=h6PMtd4ja0wa6mttFeI7rsv92yy96UgfLIU0QSs6Dmk,2108
|
|
79
79
|
pilot/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
80
80
|
pilot/util/files.py,sha256=v9uzfzo3Aq4xgnUIASEZeBJoA2nD9Qz_EA3P-FwzGFQ,1896
|
|
81
|
-
pilot_linkstec-0.0.
|
|
82
|
-
pilot_linkstec-0.0.
|
|
83
|
-
pilot_linkstec-0.0.
|
|
84
|
-
pilot_linkstec-0.0.
|
|
85
|
-
pilot_linkstec-0.0.
|
|
81
|
+
pilot_linkstec-0.0.114.dist-info/licenses/LICENSE,sha256=6kbiFSfobTZ7beWiKnHpN902HgBx-Jzgcme0SvKqhKY,1091
|
|
82
|
+
pilot_linkstec-0.0.114.dist-info/METADATA,sha256=mUKD1LTxEIqmczrmNa7DBLCiMEz8B4yUjgTv6wawC2Y,680
|
|
83
|
+
pilot_linkstec-0.0.114.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
|
|
84
|
+
pilot_linkstec-0.0.114.dist-info/top_level.txt,sha256=BijnVJdXnIPxxx3s60M848seL4Z12gNUPod6KPJxK9c,6
|
|
85
|
+
pilot_linkstec-0.0.114.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|