isa-model 0.3.2__tar.gz → 0.3.3__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.
- {isa_model-0.3.2 → isa_model-0.3.3}/PKG-INFO +1 -1
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/llm/llm_adapter.py +27 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model.egg-info/PKG-INFO +1 -1
- {isa_model-0.3.2 → isa_model-0.3.3}/pyproject.toml +1 -1
- {isa_model-0.3.2 → isa_model-0.3.3}/MANIFEST.in +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/README.md +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/__init__.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/core/model_manager.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/core/model_registry.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/core/model_storage.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/core/storage/hf_storage.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/core/storage/local_storage.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/core/storage/minio_storage.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/deployment/__init__.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/deployment/core/__init__.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/deployment/core/deployment_config.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/deployment/core/deployment_manager.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/deployment/core/isa_deployment_service.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/deployment/gpu_int8_ds8/app/server.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/deployment/gpu_int8_ds8/scripts/test_client.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/deployment/gpu_int8_ds8/scripts/test_client_os.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/eval/__init__.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/eval/benchmarks.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/eval/factory.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/eval/metrics.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/__init__.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/adapter/unified_api.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/ai_factory.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/base.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/billing_tracker.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/providers/__init__.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/providers/base_provider.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/providers/ml_provider.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/providers/model_cache_manager.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/providers/ollama_provider.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/providers/openai_provider.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/providers/replicate_provider.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/providers/triton_provider.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/__init__.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/audio/base_stt_service.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/audio/base_tts_service.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/audio/openai_realtime_service.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/audio/openai_stt_service.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/audio/openai_tts_service.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/audio/replicate_tts_service.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/base_service.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/embedding/base_embed_service.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/embedding/ollama_embed_service.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/embedding/openai_embed_service.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/llm/__init__.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/llm/base_llm_service.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/llm/ollama_llm_service.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/llm/openai_llm_service.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/llm/triton_llm_service.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/ml/base_ml_service.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/ml/sklearn_ml_service.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/others/table_transformer_service.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/vision/__init__.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/vision/base_image_gen_service.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/vision/base_vision_service.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/vision/helpers/image_utils.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/vision/helpers/text_splitter.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/vision/ollama_vision_service.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/vision/openai_vision_service.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/vision/replicate_image_gen_service.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/utils/conversion/bge_rerank_convert.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/utils/conversion/onnx_converter.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/utils/conversion/torch_converter.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/scripts/inference_tracker.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/scripts/mlflow_manager.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/scripts/model_registry.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/scripts/start_mlflow.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/scripts/training_tracker.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/training/__init__.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/training/annotation/annotation_schema.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/training/annotation/processors/annotation_processor.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/training/annotation/storage/dataset_manager.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/training/annotation/storage/dataset_schema.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/training/annotation/tests/test_annotation_flow.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/training/annotation/tests/test_minio copy.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/training/annotation/tests/test_minio_upload.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/training/annotation/views/annotation_controller.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/training/cloud/__init__.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/training/cloud/job_orchestrator.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/training/cloud/runpod_trainer.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/training/cloud/storage_manager.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/training/core/__init__.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/training/core/config.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/training/core/dataset.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/training/core/trainer.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/training/core/utils.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model/training/factory.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model.egg-info/SOURCES.txt +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model.egg-info/dependency_links.txt +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model.egg-info/requires.txt +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/isa_model.egg-info/top_level.txt +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/setup.cfg +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/setup.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/tests/test_all_services.py +0 -0
- {isa_model-0.3.2 → isa_model-0.3.3}/tests/test_training_setup.py +0 -0
@@ -89,6 +89,33 @@ class LangChainMessageAdapter:
|
|
89
89
|
msg_dict["role"] = "user"
|
90
90
|
elif msg.type == "ai":
|
91
91
|
msg_dict["role"] = "assistant"
|
92
|
+
# Handle tool calls if present in LangChain AI messages
|
93
|
+
if hasattr(msg, 'tool_calls') and msg.tool_calls:
|
94
|
+
tool_calls = []
|
95
|
+
for tc in msg.tool_calls:
|
96
|
+
if isinstance(tc, dict):
|
97
|
+
# LangChain format: {"name": "func", "args": {...}, "id": "..."}
|
98
|
+
tool_call = {
|
99
|
+
"id": tc.get("id", f"call_{len(tool_calls)}"),
|
100
|
+
"type": "function",
|
101
|
+
"function": {
|
102
|
+
"name": tc.get("name", "unknown"),
|
103
|
+
"arguments": json.dumps(tc.get("args", {}))
|
104
|
+
}
|
105
|
+
}
|
106
|
+
else:
|
107
|
+
# Handle other tool call formats
|
108
|
+
tool_call = {
|
109
|
+
"id": getattr(tc, 'id', f"call_{len(tool_calls)}"),
|
110
|
+
"type": "function",
|
111
|
+
"function": {
|
112
|
+
"name": getattr(tc, 'name', 'unknown'),
|
113
|
+
"arguments": json.dumps(getattr(tc, 'args', {}))
|
114
|
+
}
|
115
|
+
}
|
116
|
+
tool_calls.append(tool_call)
|
117
|
+
|
118
|
+
msg_dict["tool_calls"] = tool_calls # type: ignore
|
92
119
|
elif msg.type == "tool":
|
93
120
|
msg_dict["role"] = "tool"
|
94
121
|
if hasattr(msg, 'tool_call_id'):
|
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
|
{isa_model-0.3.2 → isa_model-0.3.3}/isa_model/deployment/gpu_int8_ds8/scripts/test_client.py
RENAMED
File without changes
|
{isa_model-0.3.2 → isa_model-0.3.3}/isa_model/deployment/gpu_int8_ds8/scripts/test_client_os.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
|
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
|
{isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/audio/openai_realtime_service.py
RENAMED
File without changes
|
{isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/audio/openai_stt_service.py
RENAMED
File without changes
|
{isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/audio/openai_tts_service.py
RENAMED
File without changes
|
{isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/audio/replicate_tts_service.py
RENAMED
File without changes
|
File without changes
|
{isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/embedding/base_embed_service.py
RENAMED
File without changes
|
{isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/embedding/ollama_embed_service.py
RENAMED
File without changes
|
{isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/embedding/openai_embed_service.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
|
{isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/others/table_transformer_service.py
RENAMED
File without changes
|
File without changes
|
{isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/vision/base_image_gen_service.py
RENAMED
File without changes
|
{isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/vision/base_vision_service.py
RENAMED
File without changes
|
{isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/vision/helpers/image_utils.py
RENAMED
File without changes
|
{isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/vision/helpers/text_splitter.py
RENAMED
File without changes
|
{isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/vision/ollama_vision_service.py
RENAMED
File without changes
|
{isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/services/vision/openai_vision_service.py
RENAMED
File without changes
|
File without changes
|
{isa_model-0.3.2 → isa_model-0.3.3}/isa_model/inference/utils/conversion/bge_rerank_convert.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
|
{isa_model-0.3.2 → isa_model-0.3.3}/isa_model/training/annotation/processors/annotation_processor.py
RENAMED
File without changes
|
{isa_model-0.3.2 → isa_model-0.3.3}/isa_model/training/annotation/storage/dataset_manager.py
RENAMED
File without changes
|
File without changes
|
{isa_model-0.3.2 → isa_model-0.3.3}/isa_model/training/annotation/tests/test_annotation_flow.py
RENAMED
File without changes
|
File without changes
|
{isa_model-0.3.2 → isa_model-0.3.3}/isa_model/training/annotation/tests/test_minio_upload.py
RENAMED
File without changes
|
{isa_model-0.3.2 → isa_model-0.3.3}/isa_model/training/annotation/views/annotation_controller.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
|
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
|