banko-ai-assistant 1.0.17__py3-none-any.whl → 1.0.18__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.
- banko_ai/ai_providers/watsonx_provider.py +10 -6
- banko_ai/templates/dashboard.html +1 -0
- banko_ai/web/app.py +4 -1
- {banko_ai_assistant-1.0.17.dist-info → banko_ai_assistant-1.0.18.dist-info}/METADATA +1 -1
- {banko_ai_assistant-1.0.17.dist-info → banko_ai_assistant-1.0.18.dist-info}/RECORD +9 -9
- {banko_ai_assistant-1.0.17.dist-info → banko_ai_assistant-1.0.18.dist-info}/WHEEL +0 -0
- {banko_ai_assistant-1.0.17.dist-info → banko_ai_assistant-1.0.18.dist-info}/entry_points.txt +0 -0
- {banko_ai_assistant-1.0.17.dist-info → banko_ai_assistant-1.0.18.dist-info}/licenses/LICENSE +0 -0
- {banko_ai_assistant-1.0.17.dist-info → banko_ai_assistant-1.0.18.dist-info}/top_level.txt +0 -0
@@ -137,13 +137,15 @@ class WatsonxProvider(AIProvider):
|
|
137
137
|
|
138
138
|
def get_available_models(self) -> List[str]:
|
139
139
|
"""Get list of available Watsonx models."""
|
140
|
+
# Only include models that are actually supported by Watsonx API
|
140
141
|
return [
|
141
142
|
'openai/gpt-oss-120b',
|
142
143
|
'meta-llama/llama-2-70b-chat',
|
143
144
|
'meta-llama/llama-2-13b-chat',
|
144
|
-
'meta-llama/llama-2-7b-chat'
|
145
|
-
|
146
|
-
'ibm/granite-13b-
|
145
|
+
'meta-llama/llama-2-7b-chat'
|
146
|
+
# Note: IBM Granite models may not be available in all regions/projects
|
147
|
+
# 'ibm/granite-13b-chat-v2',
|
148
|
+
# 'ibm/granite-13b-instruct-v2'
|
147
149
|
]
|
148
150
|
|
149
151
|
def set_model(self, model_id: str) -> bool:
|
@@ -159,10 +161,12 @@ class WatsonxProvider(AIProvider):
|
|
159
161
|
return False
|
160
162
|
|
161
163
|
try:
|
162
|
-
|
163
|
-
|
164
|
-
|
164
|
+
# Just test if we can get an access token - this is faster and more reliable
|
165
|
+
# than making a full API call for status checks
|
166
|
+
access_token = self._get_access_token()
|
167
|
+
return access_token is not None
|
165
168
|
except Exception as e:
|
169
|
+
# If token request fails, the connection is not available
|
166
170
|
return False
|
167
171
|
|
168
172
|
def _get_access_token(self):
|
@@ -515,6 +515,7 @@
|
|
515
515
|
<div class="flex items-center space-x-2">
|
516
516
|
<i class="fas fa-${data.ai_provider === 'connected' ? 'check-circle text-green-500' : 'times-circle text-red-500'}"></i>
|
517
517
|
<span class="text-sm text-cockroach-text-light">AI Provider (${data.ai_service}): ${data.ai_provider}</span>
|
518
|
+
${data.ai_provider === 'disconnected' && data.ai_provider_available ? '<span class="text-xs text-yellow-500 ml-1">(Model switched, connection test failed)</span>' : ''}
|
518
519
|
</div>
|
519
520
|
<div class="flex items-center space-x-2">
|
520
521
|
<i class="fas fa-robot text-blue-500"></i>
|
banko_ai/web/app.py
CHANGED
@@ -452,7 +452,9 @@ def create_app() -> Flask:
|
|
452
452
|
# Check AI provider
|
453
453
|
ai_status = "unknown"
|
454
454
|
current_model = "unknown"
|
455
|
+
ai_provider_available = False
|
455
456
|
if ai_provider:
|
457
|
+
ai_provider_available = True
|
456
458
|
ai_status = "connected" if ai_provider.test_connection() else "disconnected"
|
457
459
|
current_model = ai_provider.get_current_model()
|
458
460
|
|
@@ -461,7 +463,8 @@ def create_app() -> Flask:
|
|
461
463
|
'database': 'connected',
|
462
464
|
'ai_provider': ai_status,
|
463
465
|
'ai_service': config.ai_service,
|
464
|
-
'current_model': current_model
|
466
|
+
'current_model': current_model,
|
467
|
+
'ai_provider_available': ai_provider_available
|
465
468
|
})
|
466
469
|
|
467
470
|
except Exception as e:
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: banko-ai-assistant
|
3
|
-
Version: 1.0.
|
3
|
+
Version: 1.0.18
|
4
4
|
Summary: AI-powered expense analysis and RAG system with CockroachDB vector search and multi-provider AI support
|
5
5
|
Author-email: Virag Tripathi <virag.tripathi@gmail.com>
|
6
6
|
License-Expression: MIT
|
@@ -7,7 +7,7 @@ banko_ai/ai_providers/base.py,sha256=zbuAgkHIfJ0YkG83LXzieJuvXBcB2-nx7NhbL-I4Pf0
|
|
7
7
|
banko_ai/ai_providers/factory.py,sha256=Bqq9HcbyTfPvaOTxsHSM9eSvkB71cJoq21cMmXo4LLc,2885
|
8
8
|
banko_ai/ai_providers/gemini_provider.py,sha256=KqzHLLl7EYnai9-zFenRmktVk0zOA8AtsYScQZIcdLU,13044
|
9
9
|
banko_ai/ai_providers/openai_provider.py,sha256=Myu2And6kTD2EgIVcWHGak5fDIq0pu1HQzf-jj72y3k,11657
|
10
|
-
banko_ai/ai_providers/watsonx_provider.py,sha256=
|
10
|
+
banko_ai/ai_providers/watsonx_provider.py,sha256=PlS0OiJau0SbENH3f2UTz3QqExARPEMmOFecr5dkG-g,39556
|
11
11
|
banko_ai/config/__init__.py,sha256=YObKfKjjW89kSfARiTzXnGuSPz1C92aSMKgmO3BtQb8,133
|
12
12
|
banko_ai/config/settings.py,sha256=6M8YoaxzyCULn6BOot4hahtDkgjsgyLmMd8BxDKVt4k,9317
|
13
13
|
banko_ai/static/Anallytics.png,sha256=fWLddd5hlB4YEUYSIzOFVNnTny6D8VExQeVn31mywTc,80242
|
@@ -142,7 +142,7 @@ banko_ai/static/creditcard_files/vendor-react-76e71fd67c83934b.mjs,sha256=LCx9dM
|
|
142
142
|
banko_ai/static/creditcard_files/visual-search-fe95849c7568d600.mjs,sha256=dsIqV8HCK5_oYVudHyTDnXpfXiggV1a0x6JjFPLT4eE,267636
|
143
143
|
banko_ai/static/css/style.css,sha256=9Vz6EC3xLtqOsrSxYX3-W24ZnSk1eDSsUl6-bICjnEI,24116
|
144
144
|
banko_ai/templates/base.html,sha256=s8Dfa0Eg9Lze6zeruVSbXcLJtv-Vo7KhKvk4M3HIhxM,2237
|
145
|
-
banko_ai/templates/dashboard.html,sha256
|
145
|
+
banko_ai/templates/dashboard.html,sha256=jSKF4HqJHilatXsftXMZJMFPtp8jm0qWKa9r3yya8dc,27883
|
146
146
|
banko_ai/templates/index.html,sha256=SkDXWH_ttH2T_a_46_OETgy1Q3zDfvot9eEKGB0S1x0,66973
|
147
147
|
banko_ai/templates/login.html,sha256=YPMtJcvCzFlknwmUrG7VskeM691J4msAjZw-t4CcPn4,2063
|
148
148
|
banko_ai/utils/__init__.py,sha256=0n1JYzZUWwgwOzV82I6OnmfUV_TOnal1V0DoEb0E2Cs,225
|
@@ -154,11 +154,11 @@ banko_ai/vector_search/enrichment.py,sha256=tgAImLehkp2kL46vI5GEHsE8B5E4gT3PweXZ
|
|
154
154
|
banko_ai/vector_search/generator.py,sha256=6SV6_RZ4M4-TfJvxlXHZY1p-zcLKpIJm0p871nmEjmI,17837
|
155
155
|
banko_ai/vector_search/search.py,sha256=RiDxqcRblAFSmxMvxy9nRRrw22OtVMHP5_rsvQsS_MU,18763
|
156
156
|
banko_ai/web/__init__.py,sha256=hjWVVxYpIZhOAN1qBf4xTd36a5AUHM03Q8BF8pykhJQ,363
|
157
|
-
banko_ai/web/app.py,sha256=
|
157
|
+
banko_ai/web/app.py,sha256=dmr-fIKFmN93vijnTrBWbuz7rg3FT-iRZaBPvUJCYFY,32296
|
158
158
|
banko_ai/web/auth.py,sha256=js6qIixSFHyLbETDm8GNLCPrDkCDcaQZPFOrqtZP1uw,2125
|
159
|
-
banko_ai_assistant-1.0.
|
160
|
-
banko_ai_assistant-1.0.
|
161
|
-
banko_ai_assistant-1.0.
|
162
|
-
banko_ai_assistant-1.0.
|
163
|
-
banko_ai_assistant-1.0.
|
164
|
-
banko_ai_assistant-1.0.
|
159
|
+
banko_ai_assistant-1.0.18.dist-info/licenses/LICENSE,sha256=skG0LkywIClj8fgSIXiG6o9vUDJ678BKBObIyJ19OMw,1075
|
160
|
+
banko_ai_assistant-1.0.18.dist-info/METADATA,sha256=-9ZE8-5drz7Ms8IHohKrAqQT7nsLnVIX6vCd4KKmEZI,15573
|
161
|
+
banko_ai_assistant-1.0.18.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
162
|
+
banko_ai_assistant-1.0.18.dist-info/entry_points.txt,sha256=IxPjBjMvbpCp-ikCA43bOSbYboTGPX4HYcZlvu2_vcA,47
|
163
|
+
banko_ai_assistant-1.0.18.dist-info/top_level.txt,sha256=xNMa9Z67UssefOQ2ubFObtqUYIfYmCIclfz0xdo5OPE,9
|
164
|
+
banko_ai_assistant-1.0.18.dist-info/RECORD,,
|
File without changes
|
{banko_ai_assistant-1.0.17.dist-info → banko_ai_assistant-1.0.18.dist-info}/entry_points.txt
RENAMED
File without changes
|
{banko_ai_assistant-1.0.17.dist-info → banko_ai_assistant-1.0.18.dist-info}/licenses/LICENSE
RENAMED
File without changes
|
File without changes
|