isa-model 0.3.9__py3-none-any.whl → 0.3.91__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.
isa_model/__init__.py CHANGED
@@ -6,7 +6,7 @@ Main Components:
6
6
  - AIFactory: Legacy factory pattern (still supported)
7
7
  """
8
8
 
9
- __version__ = "0.3.9"
9
+ __version__ = "0.3.91"
10
10
 
11
11
  # Main unified client interface
12
12
  from isa_model.client import ISAModelClient, create_client
isa_model/client.py CHANGED
@@ -531,8 +531,16 @@ class ISAModelClient:
531
531
  # Handle the new response format from LLM services
532
532
  # LLM services now return {"message": ..., "success": ..., "metadata": ...}
533
533
  if isinstance(result, dict) and "message" in result:
534
- # Extract the message object (AIMessage or string)
535
- return result["message"]
534
+ # Extract the message content (convert AIMessage to string)
535
+ message = result["message"]
536
+ if hasattr(message, 'content'):
537
+ # Handle langchain AIMessage objects
538
+ return message.content
539
+ elif isinstance(message, str):
540
+ return message
541
+ else:
542
+ # Fallback: convert to string
543
+ return str(message)
536
544
 
537
545
  # Fallback for other service types or legacy format
538
546
  return result
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: isa_model
3
- Version: 0.3.9
3
+ Version: 0.3.91
4
4
  Summary: Unified AI model serving framework
5
5
  Author: isA_Model Contributors
6
6
  Classifier: Development Status :: 3 - Alpha
@@ -1,5 +1,5 @@
1
- isa_model/__init__.py,sha256=73ibr8BcJyUmtEj-c86brXCY9BjZPYfnXpMbD1ashwQ,867
2
- isa_model/client.py,sha256=xJt_wlaCZwv4fG053diFKMVpGCv3Qx0vGyFFPXow9y8,35862
1
+ isa_model/__init__.py,sha256=lYYKstKw33oavW6xS0-9cpsdYq-h0cfV_ZlGAwICRaU,868
2
+ isa_model/client.py,sha256=CcVIAYI8_t-uyIJVyxF6obF2aDSbDmS23A_xykJaQgM,36184
3
3
  isa_model/core/config.py,sha256=h9GVTEEMlaJYSCDd0W9q1KtaWTV5V5TawMsKtGuphds,15686
4
4
  isa_model/core/pricing_manager.py,sha256=W9VRHGsJVxs3EcPD2zRP0lvOYlxydb6E74RS-sLn_UA,27745
5
5
  isa_model/core/types.py,sha256=XLUs442WGNc8E0gF2M-nb6dutD_s-XCfpr2BfGBCA2M,8445
@@ -132,7 +132,7 @@ isa_model/training/core/config.py,sha256=oqgKpBvtzrN6jwLIQYQ2707lH6nmjrktRiSxp9i
132
132
  isa_model/training/core/dataset.py,sha256=XCFsnf0NUMU1dJpdvo_CAMyvXB-9_RCUEiy8TU50e20,7802
133
133
  isa_model/training/core/trainer.py,sha256=h5TjqjdFr0Fsv5y4-0siy1KmOlqLfliVaUXybvuoeXU,26932
134
134
  isa_model/training/core/utils.py,sha256=Nik0M2ssfNbWqP6fKO0Kfyhzr_H6Q19ioxB-qCYbn5E,8387
135
- isa_model-0.3.9.dist-info/METADATA,sha256=SAC2G5ZmyJ0KvNcE_8ONOGCI53bx691wWFAwb-KQghU,12326
136
- isa_model-0.3.9.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
137
- isa_model-0.3.9.dist-info/top_level.txt,sha256=eHSy_Xb3kNkh2kK11mi1mZh0Wz91AQ5b8k2KFYO-rE8,10
138
- isa_model-0.3.9.dist-info/RECORD,,
135
+ isa_model-0.3.91.dist-info/METADATA,sha256=FTukjTziEHQLyxLZ1HwYiqPgE353H1wPx1ReEX9TbNg,12327
136
+ isa_model-0.3.91.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
137
+ isa_model-0.3.91.dist-info/top_level.txt,sha256=eHSy_Xb3kNkh2kK11mi1mZh0Wz91AQ5b8k2KFYO-rE8,10
138
+ isa_model-0.3.91.dist-info/RECORD,,