asktable-advisor 1.0.1__py3-none-any.whl → 1.0.2__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.
@@ -1,4 +1,4 @@
1
1
  """Version information for asktable-advisor."""
2
2
 
3
- __version__ = "1.0.0"
3
+ __version__ = "1.0.2"
4
4
  __version_info__ = tuple(int(x) for x in __version__.split("."))
@@ -36,8 +36,9 @@ class LLMClient:
36
36
 
37
37
  # Initialize Anthropic client with Aliyun Bailian endpoint
38
38
  self.client = Anthropic(
39
- api_key=settings.anthropic_api_key,
40
- base_url=settings.anthropic_base_url,
39
+ api_key=settings.advisor_anthropic_api_key,
40
+ base_url=settings.advisor_anthropic_base_url,
41
+ timeout=60.0, # Set 60 second timeout to avoid streaming requirement
41
42
  )
42
43
 
43
44
  self.model = settings.agent_model
@@ -46,7 +47,7 @@ class LLMClient:
46
47
 
47
48
  logger.info(
48
49
  f"LLM client initialized: model={self.model}, "
49
- f"base_url={settings.anthropic_base_url}"
50
+ f"base_url={settings.advisor_anthropic_base_url}"
50
51
  )
51
52
 
52
53
  def create_message(
@@ -89,7 +90,8 @@ class LLMClient:
89
90
  # TODO: Implement streaming response handling
90
91
  logger.warning("Streaming not yet implemented, falling back to non-streaming")
91
92
 
92
- response = self.client.messages.create(**params)
93
+ # Set explicit timeout to avoid streaming requirement for large max_tokens
94
+ response = self.client.messages.create(**params, timeout=60.0)
93
95
 
94
96
  logger.debug(
95
97
  f"Received response: "
@@ -22,11 +22,11 @@ class AdvisorSettings(BaseSettings):
22
22
  )
23
23
 
24
24
  # LLM API Configuration (Aliyun Bailian - qwen3-max)
25
- anthropic_base_url: str = Field(
25
+ advisor_anthropic_base_url: str = Field(
26
26
  default="https://dashscope.aliyuncs.com/apps/anthropic",
27
27
  description="Anthropic-compatible API base URL (Aliyun Bailian)",
28
28
  )
29
- anthropic_api_key: str = Field(
29
+ advisor_anthropic_api_key: str = Field(
30
30
  ...,
31
31
  description="DashScope API key for Aliyun Bailian",
32
32
  )
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: asktable-advisor
3
- Version: 1.0.1
3
+ Version: 1.0.2
4
4
  Summary: Conversational AI Agent for building AskTable demo scenarios
5
5
  Author-email: DataMini <contact@asktable.com>
6
6
  Maintainer-email: DataMini <contact@asktable.com>
@@ -1,10 +1,10 @@
1
1
  asktable_advisor/__init__.py,sha256=21OEclDkj7fT8swRC2d7JZAqB2cB52lt-LLJno5eVFY,442
2
2
  asktable_advisor/__main__.py,sha256=WIDnjg0dQL6WykpBCd40MTMX4qd74LNaau_RfoAAZ2w,4213
3
- asktable_advisor/__version__.py,sha256=2knl3SnRO4uZ42QxU1rk-tlvYWJ_geIulHlf53SOxEU,136
4
- asktable_advisor/config.py,sha256=x4SF5r3d2Ff2Wfaq7R_5thllPTyXtow65yB7qZpgry8,2484
3
+ asktable_advisor/__version__.py,sha256=ugt62WefhlrtqCKiKBAB1QYvV6-QhBy91KkyBAN4Aws,136
4
+ asktable_advisor/config.py,sha256=JWa04IwXRcoRYXGeEB5aIelTI2kMO5nUateJD1TptTY,2500
5
5
  asktable_advisor/agent/__init__.py,sha256=QU-dutlZwnjeJ1EMtdjTLeia3SloykUAatiuHuEeHq4,147
6
6
  asktable_advisor/agent/advisor.py,sha256=g6hJpGicTyaUauWWPI6bwGsz5tH_AeaDvL6IkcSER9E,11349
7
- asktable_advisor/agent/llm_client.py,sha256=8t9T2BkjxHHyOchZPxuVrKjSnBy7tvDmV8eV9zG-pz4,5573
7
+ asktable_advisor/agent/llm_client.py,sha256=f8nVteCXiXDF0TWlYVKEhpUXuvAskuK_qbc-ipLTZR4,5780
8
8
  asktable_advisor/agent/prompts.py,sha256=eJSeRhivDKN3Qtpl_hedqJiFtsccLuFFfUcsVCzmtVA,5467
9
9
  asktable_advisor/agent/tools.py,sha256=YJv1IZQ-OIrFP4FghxGNIL12uLZ-U-cKZxuKWZEZUEo,12875
10
10
  asktable_advisor/asktable/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -18,9 +18,9 @@ asktable_advisor/database/manager.py,sha256=0dMh7s7Xs-9vpC92VgIpDJSIiu_YxJApvnmi
18
18
  asktable_advisor/database/schema_generator.py,sha256=_K8FlJ3FMtATmxzYO-4Fogace5Zsvh2p8dcGBBNkjPw,4535
19
19
  asktable_advisor/knowledge/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
20
20
  asktable_advisor/utils/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
21
- asktable_advisor-1.0.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
22
- asktable_advisor-1.0.1.dist-info/METADATA,sha256=RpkESjEK6mPcOlLPgZUfjhwMYlHW_cWiF1gL6pWulYw,7443
23
- asktable_advisor-1.0.1.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
24
- asktable_advisor-1.0.1.dist-info/entry_points.txt,sha256=m4MJ7R-05wjqqPf-awcMj9JqtwgiK2Du8UV_l6VNh6k,68
25
- asktable_advisor-1.0.1.dist-info/top_level.txt,sha256=cDBvLmuBSm43p7q7GEoZoIsB0q2al1NZbbDktRe42bQ,17
26
- asktable_advisor-1.0.1.dist-info/RECORD,,
21
+ asktable_advisor-1.0.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
22
+ asktable_advisor-1.0.2.dist-info/METADATA,sha256=RfBGh-MLgFcKZIb58kVUOg53Ff8wZ5Vi98zw69qdGDE,7443
23
+ asktable_advisor-1.0.2.dist-info/WHEEL,sha256=wUyA8OaulRlbfwMtmQsvNngGrxQHAvkKcvRmdizlJi0,92
24
+ asktable_advisor-1.0.2.dist-info/entry_points.txt,sha256=m4MJ7R-05wjqqPf-awcMj9JqtwgiK2Du8UV_l6VNh6k,68
25
+ asktable_advisor-1.0.2.dist-info/top_level.txt,sha256=cDBvLmuBSm43p7q7GEoZoIsB0q2al1NZbbDktRe42bQ,17
26
+ asktable_advisor-1.0.2.dist-info/RECORD,,