isa-model 0.3.3__tar.gz → 0.3.4__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.3 → isa_model-0.3.4}/PKG-INFO +1 -1
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/llm/llm_adapter.py +33 -3
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model.egg-info/PKG-INFO +1 -1
- {isa_model-0.3.3 → isa_model-0.3.4}/pyproject.toml +1 -1
- {isa_model-0.3.3 → isa_model-0.3.4}/MANIFEST.in +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/README.md +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/__init__.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/core/model_manager.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/core/model_registry.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/core/model_storage.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/core/storage/hf_storage.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/core/storage/local_storage.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/core/storage/minio_storage.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/deployment/__init__.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/deployment/core/__init__.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/deployment/core/deployment_config.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/deployment/core/deployment_manager.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/deployment/core/isa_deployment_service.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/deployment/gpu_int8_ds8/app/server.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/deployment/gpu_int8_ds8/scripts/test_client.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/deployment/gpu_int8_ds8/scripts/test_client_os.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/eval/__init__.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/eval/benchmarks.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/eval/factory.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/eval/metrics.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/__init__.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/adapter/unified_api.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/ai_factory.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/base.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/billing_tracker.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/providers/__init__.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/providers/base_provider.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/providers/ml_provider.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/providers/model_cache_manager.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/providers/ollama_provider.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/providers/openai_provider.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/providers/replicate_provider.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/providers/triton_provider.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/__init__.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/audio/base_stt_service.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/audio/base_tts_service.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/audio/openai_realtime_service.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/audio/openai_stt_service.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/audio/openai_tts_service.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/audio/replicate_tts_service.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/base_service.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/embedding/base_embed_service.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/embedding/ollama_embed_service.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/embedding/openai_embed_service.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/llm/__init__.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/llm/base_llm_service.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/llm/ollama_llm_service.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/llm/openai_llm_service.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/llm/triton_llm_service.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/ml/base_ml_service.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/ml/sklearn_ml_service.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/others/table_transformer_service.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/vision/__init__.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/vision/base_image_gen_service.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/vision/base_vision_service.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/vision/helpers/image_utils.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/vision/helpers/text_splitter.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/vision/ollama_vision_service.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/vision/openai_vision_service.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/vision/replicate_image_gen_service.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/utils/conversion/bge_rerank_convert.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/utils/conversion/onnx_converter.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/utils/conversion/torch_converter.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/scripts/inference_tracker.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/scripts/mlflow_manager.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/scripts/model_registry.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/scripts/start_mlflow.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/scripts/training_tracker.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/training/__init__.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/training/annotation/annotation_schema.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/training/annotation/processors/annotation_processor.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/training/annotation/storage/dataset_manager.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/training/annotation/storage/dataset_schema.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/training/annotation/tests/test_annotation_flow.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/training/annotation/tests/test_minio copy.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/training/annotation/tests/test_minio_upload.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/training/annotation/views/annotation_controller.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/training/cloud/__init__.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/training/cloud/job_orchestrator.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/training/cloud/runpod_trainer.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/training/cloud/storage_manager.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/training/core/__init__.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/training/core/config.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/training/core/dataset.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/training/core/trainer.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/training/core/utils.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model/training/factory.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model.egg-info/SOURCES.txt +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model.egg-info/dependency_links.txt +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model.egg-info/requires.txt +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/isa_model.egg-info/top_level.txt +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/setup.cfg +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/setup.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/tests/test_all_services.py +0 -0
- {isa_model-0.3.3 → isa_model-0.3.4}/tests/test_training_setup.py +0 -0
@@ -245,6 +245,35 @@ class LangChainToolAdapter:
|
|
245
245
|
return f"Error executing LangChain tool {tool.name}: {str(e)}"
|
246
246
|
|
247
247
|
|
248
|
+
# ============= OpenAI 格式工具适配器 =============
|
249
|
+
|
250
|
+
class DictToolAdapter:
|
251
|
+
"""OpenAI 格式工具字典适配器"""
|
252
|
+
|
253
|
+
def __init__(self):
|
254
|
+
self.adapter_name = "dict_tool"
|
255
|
+
self.priority = 9 # Higher priority than Python functions
|
256
|
+
|
257
|
+
def can_handle(self, tool: Any) -> bool:
|
258
|
+
"""检查是否是 OpenAI 格式的工具字典"""
|
259
|
+
return (isinstance(tool, dict) and
|
260
|
+
tool.get("type") == "function" and
|
261
|
+
"function" in tool and
|
262
|
+
isinstance(tool["function"], dict) and
|
263
|
+
"name" in tool["function"])
|
264
|
+
|
265
|
+
def to_openai_schema(self, tool: Any) -> Dict[str, Any]:
|
266
|
+
"""工具已经是 OpenAI 格式,直接返回"""
|
267
|
+
return tool
|
268
|
+
|
269
|
+
async def execute_tool(self, tool: Any, arguments: Dict[str, Any]) -> Any:
|
270
|
+
"""执行 OpenAI 格式工具(通常需要外部执行器)"""
|
271
|
+
# 对于 OpenAI 格式的工具字典,我们无法直接执行
|
272
|
+
# 这种情况下返回一个指示,让调用方处理
|
273
|
+
tool_name = tool["function"]["name"]
|
274
|
+
return f"Error: Cannot execute dict tool {tool_name} directly. Requires external executor."
|
275
|
+
|
276
|
+
|
248
277
|
# ============= Python 函数适配器 =============
|
249
278
|
|
250
279
|
class PythonFunctionAdapter:
|
@@ -391,10 +420,11 @@ class AdapterManager:
|
|
391
420
|
StandardMessageAdapter() # 回退适配器
|
392
421
|
]
|
393
422
|
|
394
|
-
#
|
423
|
+
# 工具适配器(按优先级排序)
|
395
424
|
self.tool_adapters = [
|
396
|
-
|
397
|
-
|
425
|
+
DictToolAdapter(), # 最高优先级 - OpenAI格式工具
|
426
|
+
LangChainToolAdapter(), # 中等优先级 - LangChain工具
|
427
|
+
PythonFunctionAdapter() # 最低优先级 - Python函数
|
398
428
|
]
|
399
429
|
|
400
430
|
def register_custom_adapter(self, adapter, adapter_type: str):
|
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.3 → isa_model-0.3.4}/isa_model/deployment/gpu_int8_ds8/scripts/test_client.py
RENAMED
File without changes
|
{isa_model-0.3.3 → isa_model-0.3.4}/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.3 → isa_model-0.3.4}/isa_model/inference/services/audio/openai_realtime_service.py
RENAMED
File without changes
|
{isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/audio/openai_stt_service.py
RENAMED
File without changes
|
{isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/audio/openai_tts_service.py
RENAMED
File without changes
|
{isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/audio/replicate_tts_service.py
RENAMED
File without changes
|
File without changes
|
{isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/embedding/base_embed_service.py
RENAMED
File without changes
|
{isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/embedding/ollama_embed_service.py
RENAMED
File without changes
|
{isa_model-0.3.3 → isa_model-0.3.4}/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.3 → isa_model-0.3.4}/isa_model/inference/services/others/table_transformer_service.py
RENAMED
File without changes
|
File without changes
|
{isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/vision/base_image_gen_service.py
RENAMED
File without changes
|
{isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/vision/base_vision_service.py
RENAMED
File without changes
|
{isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/vision/helpers/image_utils.py
RENAMED
File without changes
|
{isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/vision/helpers/text_splitter.py
RENAMED
File without changes
|
{isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/vision/ollama_vision_service.py
RENAMED
File without changes
|
{isa_model-0.3.3 → isa_model-0.3.4}/isa_model/inference/services/vision/openai_vision_service.py
RENAMED
File without changes
|
File without changes
|
{isa_model-0.3.3 → isa_model-0.3.4}/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.3 → isa_model-0.3.4}/isa_model/training/annotation/processors/annotation_processor.py
RENAMED
File without changes
|
{isa_model-0.3.3 → isa_model-0.3.4}/isa_model/training/annotation/storage/dataset_manager.py
RENAMED
File without changes
|
File without changes
|
{isa_model-0.3.3 → isa_model-0.3.4}/isa_model/training/annotation/tests/test_annotation_flow.py
RENAMED
File without changes
|
File without changes
|
{isa_model-0.3.3 → isa_model-0.3.4}/isa_model/training/annotation/tests/test_minio_upload.py
RENAMED
File without changes
|
{isa_model-0.3.3 → isa_model-0.3.4}/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
|