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

@@ -3,9 +3,8 @@ import threading
3
3
  from typing import Dict, Any, Optional
4
4
 
5
5
  import tiktoken
6
- from vertexai.generative_models import GenerativeModel, ChatSession
6
+ from vertexai.generative_models import GenerativeModel, ChatSession, GenerationConfig
7
7
  from google.genai import types
8
- import os
9
8
 
10
9
  class VertexAISingleton:
11
10
  _instance: Optional['VertexAISingleton'] = None
@@ -49,9 +48,9 @@ class VertexAISingleton:
49
48
  try:
50
49
  # システムプロンプトをconfigとして渡す
51
50
 
52
- generation_config = {
53
- "system_instruction": self.system_prompt
54
- }
51
+ generation_config = types.GenerateContentConfig(
52
+ system_instruction = self.system_prompt
53
+ )
55
54
  prompt = self.exchange_prompt(prompt)
56
55
  response = self.model.generate_content(
57
56
  contents=prompt, # 引数名を明示
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: pilot.linkstec
3
- Version: 0.0.21
3
+ Version: 0.0.22
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
@@ -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=tTuPFOqUnZfvuUN9PTUY8NyJf_tbPEDP69BbnKsJmII,6182
12
+ pilot/generater/vertexai.py,sha256=rEy8_i-DSm_7MbsRlKdPrDBsf8ECk0EyiAaIny3FRj8,6215
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
@@ -27,8 +27,8 @@ pilot/unit/impl/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
27
27
  pilot/unit/impl/base_unit.py,sha256=LsFPpL28aSNv5rsZhfKv6CWhAw1XR4n-A6FOn2RBrZo,1272
28
28
  pilot/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
29
29
  pilot/util/files.py,sha256=v9uzfzo3Aq4xgnUIASEZeBJoA2nD9Qz_EA3P-FwzGFQ,1896
30
- pilot_linkstec-0.0.21.dist-info/licenses/LICENSE,sha256=6kbiFSfobTZ7beWiKnHpN902HgBx-Jzgcme0SvKqhKY,1091
31
- pilot_linkstec-0.0.21.dist-info/METADATA,sha256=229z9_Z7g81xaef1Zz2bfoKgsERxPlikbb7cJGOZ1o0,679
32
- pilot_linkstec-0.0.21.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
33
- pilot_linkstec-0.0.21.dist-info/top_level.txt,sha256=BijnVJdXnIPxxx3s60M848seL4Z12gNUPod6KPJxK9c,6
34
- pilot_linkstec-0.0.21.dist-info/RECORD,,
30
+ pilot_linkstec-0.0.22.dist-info/licenses/LICENSE,sha256=6kbiFSfobTZ7beWiKnHpN902HgBx-Jzgcme0SvKqhKY,1091
31
+ pilot_linkstec-0.0.22.dist-info/METADATA,sha256=ylEtRen-5bTEybxoLmCBFD3gQZzB_aQHRy_Wab4x-BU,679
32
+ pilot_linkstec-0.0.22.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
33
+ pilot_linkstec-0.0.22.dist-info/top_level.txt,sha256=BijnVJdXnIPxxx3s60M848seL4Z12gNUPod6KPJxK9c,6
34
+ pilot_linkstec-0.0.22.dist-info/RECORD,,