pilot.linkstec 0.0.20__tar.gz → 0.0.22__tar.gz
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.
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/PKG-INFO +1 -1
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/pyproject.toml +1 -1
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot/generater/vertexai.py +9 -11
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot.linkstec.egg-info/PKG-INFO +1 -1
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/LICENSE +0 -0
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/README.md +0 -0
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/setup.cfg +0 -0
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot/__init__.py +0 -0
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot/config/__init__.py +0 -0
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot/config/config_reader.py +0 -0
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot/control/__init__.py +0 -0
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot/control/control_interface.py +0 -0
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot/control/impl/__init__.py +0 -0
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot/control/impl/base_controller.py +0 -0
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot/conver/__init__.py +0 -0
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot/conver/converfileEncodding.py +0 -0
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot/conver/nkf_converter.py +0 -0
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot/generater/__init__.py +0 -0
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot/job/__init__.py +0 -0
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot/job/impl/__init__.py +0 -0
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot/job/impl/base_job.py +0 -0
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot/job/job_interface.py +0 -0
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot/logging/__init__.py +0 -0
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot/logging/logger.py +0 -0
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot/processor/__init__.py +0 -0
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot/processor/code_processor.py +0 -0
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot/processor/code_processor_pipeline.py +0 -0
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot/splitters/__init__.py +0 -0
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot/splitters/cobolsplitter.py +0 -0
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot/unit/__init__.py +0 -0
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot/unit/impl/__init__.py +0 -0
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot/unit/impl/base_unit.py +0 -0
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot/unit/unit_interface.py +0 -0
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot/util/__init__.py +0 -0
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot/util/files.py +0 -0
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot.linkstec.egg-info/SOURCES.txt +0 -0
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot.linkstec.egg-info/dependency_links.txt +0 -0
- {pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot.linkstec.egg-info/top_level.txt +0 -0
|
@@ -3,8 +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
|
|
7
|
-
import
|
|
6
|
+
from vertexai.generative_models import GenerativeModel, ChatSession, GenerationConfig
|
|
7
|
+
from google.genai import types
|
|
8
8
|
|
|
9
9
|
class VertexAISingleton:
|
|
10
10
|
_instance: Optional['VertexAISingleton'] = None
|
|
@@ -47,16 +47,14 @@ class VertexAISingleton:
|
|
|
47
47
|
"""複数スレッドから安全に呼び出し可能"""
|
|
48
48
|
try:
|
|
49
49
|
# システムプロンプトをconfigとして渡す
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
}
|
|
56
|
-
newprompt = self.exchange_prompt(prompt)
|
|
50
|
+
|
|
51
|
+
generation_config = types.GenerateContentConfig(
|
|
52
|
+
system_instruction = self.system_prompt
|
|
53
|
+
)
|
|
54
|
+
prompt = self.exchange_prompt(prompt)
|
|
57
55
|
response = self.model.generate_content(
|
|
58
|
-
contents=
|
|
59
|
-
generation_config=
|
|
56
|
+
contents=prompt, # 引数名を明示
|
|
57
|
+
generation_config = generation_config # 正しい名前で渡す
|
|
60
58
|
)
|
|
61
59
|
return {
|
|
62
60
|
"prompt": prompt,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot/processor/code_processor_pipeline.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{pilot_linkstec-0.0.20 → pilot_linkstec-0.0.22}/src/pilot.linkstec.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|