pilot.linkstec 0.0.11__py3-none-any.whl → 0.0.13__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.

Potentially problematic release.


This version of pilot.linkstec might be problematic. Click here for more details.

@@ -81,9 +81,9 @@ class ConfigReader:
81
81
  steps = [s.strip() for s in steps_str.split(',')] if steps_str else []
82
82
  skipsteps_str = self.get('DEFAULT', 'skipsteps', fallback='')
83
83
  skipsteps = [s.strip() for s in skipsteps_str.split(',')] if skipsteps_str else []
84
- runsteps_str = self.get('DEFAULT', 'runstep', fallback='')
84
+ runsteps_str = self.get('DEFAULT', 'runsteps', fallback='')
85
85
  runsteps = [s.strip() for s in runsteps_str.split(',')] if runsteps_str else []
86
- multisteps_str = self.get('DEFAULT', 'multistep', fallback='')
86
+ multisteps_str = self.get('DEFAULT', 'multisteps', fallback='')
87
87
  multisteps = [s.strip() for s in multisteps_str.split(',')] if multisteps_str else []
88
88
 
89
89
  return ConfigDTO(
@@ -24,7 +24,7 @@ class VertexAISingleton:
24
24
  with self._lock:
25
25
  if not self._initialized:
26
26
  self.model = GenerativeModel(model_name)
27
- self.encoding = tiktoken.get_encoding("cl100k_base")
27
+
28
28
  self._initialized = True
29
29
 
30
30
  def generate_content(self, prompt: str) -> Dict[str, Any]:
@@ -52,6 +52,7 @@ class VertexAISingleton:
52
52
  def count_tokens(self, text: str) -> int:
53
53
  """与えられたテキストのトークン数を返す(bert-base-uncasedのみ使用)"""
54
54
  try:
55
+ self.encoding = tiktoken.get_encoding("cl100k_base")
55
56
  tokens = self.encoding.encode(text)
56
57
  return len(tokens)
57
58
  except Exception as e:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pilot.linkstec
3
- Version: 0.0.11
3
+ Version: 0.0.13
4
4
  Summary: pilot of the ship, a tool for managing and deploying Python projects.
5
5
  Author-email: wanglr <wanglr1980@gmail.com>
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
1
  pilot/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
2
  pilot/config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
- pilot/config/config_reader.py,sha256=wrb6bIDMYqZfp0KtoYIzoRMLmbKVEFaRhydm-csJaKM,3752
3
+ pilot/config/config_reader.py,sha256=zG_CFIgeTvrcXCtKmOgXC39625XFFIPGuw4u9lzkeEs,3754
4
4
  pilot/control/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
5
5
  pilot/control/control_interface.py,sha256=zGv380oQgAKPAIHDHeFdPYzhj2Ngo2T66NWlNloA7vY,124
6
6
  pilot/control/impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -9,7 +9,7 @@ pilot/conver/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
9
9
  pilot/conver/converfileEncodding.py,sha256=UqjcWO0bzkuTRHLEWrWJkeo3p-P7WuYE7jFKveyPekA,2781
10
10
  pilot/conver/nkf_converter.py,sha256=JqgThmXcdnTGMsLIHUEwe8sc0VGMqDaKCIQTg-UE3WE,1148
11
11
  pilot/generater/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
- pilot/generater/vertexai.py,sha256=v-hEvPwsUtrxP57yu9f5pUBj7BGImegO4lv10QWM1XA,2591
12
+ pilot/generater/vertexai.py,sha256=_MLmDuiVdEsAbKCTEM6KPbALnTXNTcIht2QMm-p9Kjs,2585
13
13
  pilot/job/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
14
14
  pilot/job/job_interface.py,sha256=LL0hfuFfnKnkpQD99jv1hkaAIAFM-JJPrX3PFxN6O_A,120
15
15
  pilot/job/impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -22,8 +22,8 @@ pilot/unit/impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
22
22
  pilot/unit/impl/base_unit.py,sha256=LsFPpL28aSNv5rsZhfKv6CWhAw1XR4n-A6FOn2RBrZo,1272
23
23
  pilot/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
24
24
  pilot/util/files.py,sha256=v9uzfzo3Aq4xgnUIASEZeBJoA2nD9Qz_EA3P-FwzGFQ,1896
25
- pilot_linkstec-0.0.11.dist-info/licenses/LICENSE,sha256=6kbiFSfobTZ7beWiKnHpN902HgBx-Jzgcme0SvKqhKY,1091
26
- pilot_linkstec-0.0.11.dist-info/METADATA,sha256=70P5Qo9RbAq262qQ3MAg-JqdefyATuzs2CL48LUJBSM,679
27
- pilot_linkstec-0.0.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
28
- pilot_linkstec-0.0.11.dist-info/top_level.txt,sha256=BijnVJdXnIPxxx3s60M848seL4Z12gNUPod6KPJxK9c,6
29
- pilot_linkstec-0.0.11.dist-info/RECORD,,
25
+ pilot_linkstec-0.0.13.dist-info/licenses/LICENSE,sha256=6kbiFSfobTZ7beWiKnHpN902HgBx-Jzgcme0SvKqhKY,1091
26
+ pilot_linkstec-0.0.13.dist-info/METADATA,sha256=qh87JuOVrhmDgpaPgiTFTT63nVI5MGcXZJtxYMAilOg,679
27
+ pilot_linkstec-0.0.13.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
28
+ pilot_linkstec-0.0.13.dist-info/top_level.txt,sha256=BijnVJdXnIPxxx3s60M848seL4Z12gNUPod6KPJxK9c,6
29
+ pilot_linkstec-0.0.13.dist-info/RECORD,,