asktable-advisor 1.0.1__tar.gz → 1.0.2__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.
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/.env.example +4 -3
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/PKG-INFO +1 -1
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/asktable_advisor/__version__.py +1 -1
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/asktable_advisor/agent/llm_client.py +6 -4
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/asktable_advisor/config.py +2 -2
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/asktable_advisor.egg-info/PKG-INFO +1 -1
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/pyproject.toml +1 -1
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/CLAUDE.md +0 -0
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/LICENSE +0 -0
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/MANIFEST.in +0 -0
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/README.md +0 -0
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/asktable_advisor/__init__.py +0 -0
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/asktable_advisor/__main__.py +0 -0
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/asktable_advisor/agent/__init__.py +0 -0
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/asktable_advisor/agent/advisor.py +0 -0
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/asktable_advisor/agent/prompts.py +0 -0
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/asktable_advisor/agent/tools.py +0 -0
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/asktable_advisor/asktable/__init__.py +0 -0
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/asktable_advisor/asktable/client.py +0 -0
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/asktable_advisor/asktable/inspector.py +0 -0
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/asktable_advisor/asktable/resources/__init__.py +0 -0
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/asktable_advisor/conversation/__init__.py +0 -0
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/asktable_advisor/database/__init__.py +0 -0
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/asktable_advisor/database/data_generator.py +0 -0
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/asktable_advisor/database/manager.py +0 -0
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/asktable_advisor/database/schema_generator.py +0 -0
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/asktable_advisor/knowledge/__init__.py +0 -0
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/asktable_advisor/utils/__init__.py +0 -0
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/asktable_advisor.egg-info/SOURCES.txt +0 -0
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/asktable_advisor.egg-info/dependency_links.txt +0 -0
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/asktable_advisor.egg-info/entry_points.txt +0 -0
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/asktable_advisor.egg-info/requires.txt +0 -0
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/asktable_advisor.egg-info/top_level.txt +0 -0
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/setup.cfg +0 -0
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/tests/test_config.py +0 -0
- {asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/tests/test_scenarios.py +0 -0
|
@@ -8,13 +8,14 @@ ASKTABLE_API_BASE=https://api.asktable.com
|
|
|
8
8
|
|
|
9
9
|
# LLM API Configuration (Aliyun Bailian - qwen3-max)
|
|
10
10
|
# Get your DashScope API key from: https://dashscope.console.aliyun.com/apiKey
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
# Note: Use ADVISOR_ANTHROPIC_* prefix to avoid conflicts with system environment variables
|
|
12
|
+
ADVISOR_ANTHROPIC_BASE_URL=https://dashscope.aliyuncs.com/apps/anthropic
|
|
13
|
+
ADVISOR_ANTHROPIC_API_KEY=
|
|
13
14
|
|
|
14
15
|
# Agent Configuration
|
|
15
16
|
AGENT_MODEL=qwen3-max
|
|
16
17
|
AGENT_TEMPERATURE=0.7
|
|
17
|
-
AGENT_MAX_TOKENS=
|
|
18
|
+
AGENT_MAX_TOKENS=8192 # Maximum: 65536 for qwen3-max
|
|
18
19
|
|
|
19
20
|
# MySQL Database Configuration
|
|
20
21
|
MYSQL_HOST=
|
|
@@ -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.
|
|
40
|
-
base_url=settings.
|
|
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.
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
29
|
+
advisor_anthropic_api_key: str = Field(
|
|
30
30
|
...,
|
|
31
31
|
description="DashScope API key for Aliyun Bailian",
|
|
32
32
|
)
|
|
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
|
{asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/asktable_advisor/asktable/resources/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/asktable_advisor/database/data_generator.py
RENAMED
|
File without changes
|
|
File without changes
|
{asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/asktable_advisor/database/schema_generator.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/asktable_advisor.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
{asktable_advisor-1.0.1 → asktable_advisor-1.0.2}/asktable_advisor.egg-info/entry_points.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|