增强google search

This commit is contained in:
xucheng 2026-01-13 19:46:39 +08:00
parent 7a4e2ff6b8
commit b2f2833025
3 changed files with 100 additions and 2 deletions

View File

@ -47,13 +47,17 @@ async def chat_with_ai(request: ChatRequest, db: AsyncSession = Depends(get_db))
# Search Configuration & System Prompt
tools = []
final_system_prompt = request.system_prompt or ""
if request.use_google_search:
tools.append(types.Tool(google_search=types.GoogleSearch()))
# Inject strong instruction to force search usage
final_system_prompt += "\n\n[SYSTEM INSTRUCTION] You have access to Google Search. You MUST use it to verify any data or find the latest information before answering. Do not rely solely on your internal knowledge."
config = types.GenerateContentConfig(
tools=tools if tools else None,
temperature=0.1,
system_instruction=request.system_prompt
system_instruction=final_system_prompt
)
start_time = time.time()

View File

@ -2806,3 +2806,97 @@ JSON_END
2026-01-13 14:07:21,494 - httpx - INFO - HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:streamGenerateContent?alt=sse "HTTP/1.1 200 OK"
2026-01-13 14:07:48,005 - google_genai.models - INFO - AFC is enabled with max remote calls: 10.
2026-01-13 14:08:04,297 - httpx - INFO - HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:streamGenerateContent?alt=sse "HTTP/1.1 200 OK"
2026-01-13 19:33:03,102 - app.services.data_fetcher_service - INFO - 🔄 [进度更新] ID=93, Msg=正在初始化数据获取..., Progress=0%
2026-01-13 19:33:04,166 - app.clients.bloomberg_client - INFO - Connecting to Jupyter at http://192.168.3.161:8888...
2026-01-13 19:33:07,038 - app.clients.bloomberg_client - INFO - ✅ Authentication successful.
2026-01-13 19:33:07,064 - app.clients.bloomberg_client - INFO - ✅ Found existing kernel: bc27f3b1-b028-434a-99fa-c1cad4495a87 (remote_env)
2026-01-13 19:33:08,114 - app.clients.bloomberg_client - INFO - ✅ WebSocket connected.
2026-01-13 19:33:08,115 - app.services.data_fetcher_service - INFO - 🔄 [进度更新] ID=93, Msg=数据源连接成功, Progress=10%
2026-01-13 19:33:09,354 - app.services.data_fetcher_service - INFO - 🔄 [进度更新] ID=93, Msg=正在连接 Bloomberg 终端..., Progress=20%
2026-01-13 19:33:09,827 - app.clients.bloomberg_client - INFO - 🚀 Starting fetch for: 7741 JP Equity
2026-01-13 19:33:09,828 - app.services.data_fetcher_service - INFO - 🔄 [进度更新] ID=93, Msg=Starting Bloomberg session..., Progress=20%
2026-01-13 19:33:10,428 - app.clients.bloomberg_client - INFO - Using auto-detected currency: JPY
2026-01-13 19:33:10,429 - app.clients.bloomberg_client - INFO - Fetching Basic Data...
2026-01-13 19:33:10,429 - app.services.data_fetcher_service - INFO - 🔄 [进度更新] ID=93, Msg=Fetching Company Basic Info..., Progress=27%
2026-01-13 19:33:12,439 - app.clients.bloomberg_client - INFO - REMOTE RAW OUTPUT: JSON_START
[{"Company_code": "7741 JP Equity", "update_date": "2026-01-13 19:33:13", "currency": "JPY", "indicator": "company_name", "value": "HOYA CORP", "value_date": "2026-01-13 19:33:13"}, {"Company_code": "7741 JP Equity", "update_date": "2026-01-13 19:33:13", "currency": "JPY", "indicator": "pe_ratio", "value": "40.710103933692935", "value_date": "2026-01-13 19:33:13"}, {"Company_code": "7741 JP Equity", "update_date": "2026-01-13 19:33:13", "currency": "JPY", "indicator": "pb_ratio", "value": "8.375901653285727", "value_date": "2026-01-13 19:33:13"}, {"Company_code": "7741 JP Equity", "update_date": "2026-01-13 19:33:13", "currency": "JPY", "indicator": "Rev_Abroad", "value": "78.89373602822991", "value_date": "2026-01-13 19:33:13"}, {"Company_code": "7741 JP Equity", "update_date": "2026-01-13 19:33:13", "currency": "JPY", "indicator": "dividend_yield", "value": "0.9695011108866897", "value_date": "2026-01-13 19:33:13"}, {"Company_code": "7741 JP Equity", "update_date": "2026-0
2026-01-13 19:33:12,440 - app.clients.bloomberg_client - INFO - ✅ Parsed 6 items from remote.
2026-01-13 19:33:12,440 - app.clients.bloomberg_client - INFO - DEBUG: basic_data before save: [{'Company_code': '7741 JP Equity', 'update_date': '2026-01-13 19:33:13', 'currency': 'JPY', 'indicator': 'company_name', 'value': 'HOYA CORP', 'value_date': '2026-01-13 19:33:13'}, {'Company_code': '7741 JP Equity', 'update_date': '2026-01-13 19:33:13', 'currency': 'JPY', 'indicator': 'pe_ratio', 'value': '40.710103933692935', 'value_date': '2026-01-13 19:33:13'}, {'Company_code': '7741 JP Equity', 'update_date': '2026-01-13 19:33:13', 'currency': 'JPY', 'indicator': 'pb_ratio', 'value': '8.375901653285727', 'value_date': '2026-01-13 19:33:13'}, {'Company_code': '7741 JP Equity', 'update_date': '2026-01-13 19:33:13', 'currency': 'JPY', 'indicator': 'Rev_Abroad', 'value': '78.89373602822991', 'value_date': '2026-01-13 19:33:13'}, {'Company_code': '7741 JP Equity', 'update_date': '2026-01-13 19:33:13', 'currency': 'JPY', 'indicator': 'dividend_yield', 'value': '0.9695011108866897', 'value_date': '2026-01-13 19:33:13'}, {'Company_code': '7741 JP Equity', 'update_date': '2026-01-13 19:33:13', 'currency': 'JPY', 'indicator': 'market_cap', 'value': '8377446.4916', 'value_date': '2026-01-13 19:33:13'}]
2026-01-13 19:33:14,193 - app.clients.bloomberg_client - INFO - ✅ Saved 6 records to database.
2026-01-13 19:33:14,193 - app.clients.bloomberg_client - INFO - Fetching Currency Data...
2026-01-13 19:33:14,194 - app.services.data_fetcher_service - INFO - 🔄 [进度更新] ID=93, Msg=正在获取货币指标 (JPY)..., Progress=41%
2026-01-13 19:33:15,528 - app.clients.bloomberg_client - INFO - REMOTE RAW OUTPUT: JSON_START
[{"Company_code": "7741 JP Equity", "update_date": "2026-01-13 19:33:14", "currency": "JPY", "indicator": "Revenue", "value": "505714.0", "value_date": "2016-03-31"}, {"Company_code": "7741 JP Equity", "update_date": "2026-01-13 19:33:14", "currency": "JPY", "indicator": "Net_Income", "value": "93175.0", "value_date": "2016-03-31"}, {"Company_code": "7741 JP Equity", "update_date": "2026-01-13 19:33:14", "currency": "JPY", "indicator": "Cash_From_Operating", "value": "131889.0", "value_date": "2016-03-31"}, {"Company_code": "7741 JP Equity", "update_date": "2026-01-13 19:33:14", "currency": "JPY", "indicator": "Capital_Expenditure", "value": "-18184.0", "value_date": "2016-03-31"}, {"Company_code": "7741 JP Equity", "update_date": "2026-01-13 19:33:14", "currency": "JPY", "indicator": "Free_Cash_Flow", "value": "113705.0", "value_date": "2016-03-31"}, {"Company_code": "7741 JP Equity", "update_date": "2026-01-13 19:33:14", "currency": "JPY", "indicator": "Dividends_Paid", "v
2026-01-13 19:33:15,529 - app.clients.bloomberg_client - INFO - ✅ Parsed 250 items from remote.
2026-01-13 19:33:38,844 - app.clients.bloomberg_client - INFO - ✅ Saved 250 records to database.
2026-01-13 19:33:38,846 - app.clients.bloomberg_client - INFO - Fetching Non-Currency Data...
2026-01-13 19:33:38,846 - app.services.data_fetcher_service - INFO - 🔄 [进度更新] ID=93, Msg=正在获取非货币指标..., Progress=55%
2026-01-13 19:33:40,114 - app.clients.bloomberg_client - INFO - REMOTE RAW OUTPUT: JSON_START
[{"Company_code": "7741 JP Equity", "update_date": "2026-01-13 19:33:39", "currency": "JPY", "indicator": "ROE", "value": "17.2024", "value_date": "2016-03-31"}, {"Company_code": "7741 JP Equity", "update_date": "2026-01-13 19:33:39", "currency": "JPY", "indicator": "ROA", "value": "13.575", "value_date": "2016-03-31"}, {"Company_code": "7741 JP Equity", "update_date": "2026-01-13 19:33:39", "currency": "JPY", "indicator": "ROCE", "value": "17.5001", "value_date": "2016-03-31"}, {"Company_code": "7741 JP Equity", "update_date": "2026-01-13 19:33:39", "currency": "JPY", "indicator": "Gross_Margin", "value": "82.1978", "value_date": "2016-03-31"}, {"Company_code": "7741 JP Equity", "update_date": "2026-01-13 19:33:39", "currency": "JPY", "indicator": "EBITDA_margin", "value": "30.539", "value_date": "2016-03-31"}, {"Company_code": "7741 JP Equity", "update_date": "2026-01-13 19:33:39", "currency": "JPY", "indicator": "Net_Profit_Margin", "value": "18.4244", "value_date": "2016
2026-01-13 19:33:40,115 - app.clients.bloomberg_client - INFO - ✅ Parsed 200 items from remote.
2026-01-13 19:33:56,672 - app.clients.bloomberg_client - INFO - ✅ Saved 200 records to database.
2026-01-13 19:33:56,673 - app.clients.bloomberg_client - INFO - Fetching Price Data (Aligned)...
2026-01-13 19:33:56,673 - app.services.data_fetcher_service - INFO - 🔄 [进度更新] ID=93, Msg=正在获取价格指标..., Progress=69%
2026-01-13 19:33:57,442 - app.clients.bloomberg_client - INFO - Found 10 revenue reporting dates. Fetching aligned price data...
2026-01-13 19:34:09,872 - app.clients.bloomberg_client - INFO - REMOTE RAW OUTPUT: JSON_START
[{"Company_code": "7741 JP Equity", "update_date": "2026-01-13 19:33:57", "currency": "JPY", "indicator": "Last_Price", "value": "16780.0", "value_date": "2025-03-31"}, {"Company_code": "7741 JP Equity", "update_date": "2026-01-13 19:33:57", "currency": "JPY", "indicator": "Market_Cap", "value": "5803517.7116", "value_date": "2025-03-31"}, {"Company_code": "7741 JP Equity", "update_date": "2026-01-13 19:33:57", "currency": "JPY", "indicator": "Dividend_Yield", "value": "0.9535", "value_date": "2025-03-31"}, {"Company_code": "7741 JP Equity", "update_date": "2026-01-13 19:33:57", "currency": "JPY", "indicator": "Last_Price", "value": "18740.0", "value_date": "2024-03-31"}, {"Company_code": "7741 JP Equity", "update_date": "2026-01-13 19:33:57", "currency": "JPY", "indicator": "Market_Cap", "value": "6576966.4128", "value_date": "2024-03-31"}, {"Company_code": "7741 JP Equity", "update_date": "2026-01-13 19:33:57", "currency": "JPY", "indicator": "Dividend_Yield", "value": "0.
2026-01-13 19:34:09,873 - app.clients.bloomberg_client - INFO - ✅ Parsed 30 items from remote.
2026-01-13 19:34:14,847 - app.clients.bloomberg_client - INFO - ✅ Saved 30 records to database.
2026-01-13 19:34:14,848 - app.services.data_fetcher_service - INFO - 🔄 [进度更新] ID=93, Msg=Finalizing data..., Progress=82%
2026-01-13 19:34:15,878 - app.clients.bloomberg_client - INFO - ✅ Cleanup and View Refresh completed.
2026-01-13 19:34:15,881 - app.clients.bloomberg_client - INFO - ✅ Completed processing for 7741 JP Equity
2026-01-13 19:34:15,881 - app.services.data_fetcher_service - INFO - 🔄 [进度更新] ID=93, Msg=Bloomberg data sync complete, Progress=90%
2026-01-13 19:34:16,122 - app.services.data_fetcher_service - INFO - 🔄 [进度更新] ID=93, Msg=Bloomberg 数据同步完成, Progress=100%
2026-01-13 19:34:53,406 - google_genai.models - INFO - AFC is enabled with max remote calls: 10.
2026-01-13 19:34:59,317 - httpx - INFO - HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-3-flash-preview:streamGenerateContent?alt=sse "HTTP/1.1 200 OK"
2026-01-13 19:37:11,575 - google_genai.models - INFO - AFC is enabled with max remote calls: 10.
2026-01-13 19:37:16,120 - httpx - INFO - HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-3-flash-preview:streamGenerateContent?alt=sse "HTTP/1.1 200 OK"
2026-01-13 19:39:08,494 - google_genai.models - INFO - AFC is enabled with max remote calls: 10.
2026-01-13 19:39:11,414 - httpx - INFO - HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-3-flash-preview:streamGenerateContent?alt=sse "HTTP/1.1 200 OK"
2026-01-13 19:39:28,515 - app.main - INFO - 🔍 [搜索] 开始搜索股票: 爱尔康
2026-01-13 19:39:28,517 - app.main - INFO - 🤖 [搜索-LLM] 调用 gemini-2.5-flash 进行股票搜索
2026-01-13 19:39:28,518 - google_genai.models - INFO - AFC is enabled with max remote calls: 10.
2026-01-13 19:39:35,569 - httpx - INFO - HTTP Request: POST https://generativelanguage.googleapis.com/v1beta/models/gemini-2.5-flash:generateContent "HTTP/1.1 200 OK"
2026-01-13 19:39:35,576 - app.main - INFO - ✅ [搜索-LLM] 模型响应完成, 耗时: 7.06秒, Tokens: prompt=166, completion=72, total=238
2026-01-13 19:39:35,576 - app.main - INFO - ✅ [搜索] 搜索完成, 找到 1 个结果, 总耗时: 7.06秒
2026-01-13 19:39:41,162 - app.services.data_fetcher_service - INFO - 🔄 [进度更新] ID=94, Msg=正在初始化数据获取..., Progress=0%
2026-01-13 19:39:41,734 - app.clients.bloomberg_client - INFO - Connecting to Jupyter at http://192.168.3.161:8888...
2026-01-13 19:39:42,491 - app.clients.bloomberg_client - INFO - ✅ Authentication successful.
2026-01-13 19:39:42,516 - app.clients.bloomberg_client - INFO - ✅ Found existing kernel: bc27f3b1-b028-434a-99fa-c1cad4495a87 (remote_env)
2026-01-13 19:39:42,761 - app.clients.bloomberg_client - INFO - ✅ WebSocket connected.
2026-01-13 19:39:42,761 - app.services.data_fetcher_service - INFO - 🔄 [进度更新] ID=94, Msg=数据源连接成功, Progress=10%
2026-01-13 19:39:43,954 - app.services.data_fetcher_service - INFO - 🔄 [进度更新] ID=94, Msg=正在连接 Bloomberg 终端..., Progress=20%
2026-01-13 19:39:45,416 - app.clients.bloomberg_client - INFO - 🚀 Starting fetch for: ALC US Equity
2026-01-13 19:39:45,417 - app.services.data_fetcher_service - INFO - 🔄 [进度更新] ID=94, Msg=Starting Bloomberg session..., Progress=20%
2026-01-13 19:39:46,165 - app.clients.bloomberg_client - INFO - Using auto-detected currency: USD
2026-01-13 19:39:46,165 - app.clients.bloomberg_client - INFO - Fetching Basic Data...
2026-01-13 19:39:46,166 - app.services.data_fetcher_service - INFO - 🔄 [进度更新] ID=94, Msg=Fetching Company Basic Info..., Progress=27%
2026-01-13 19:39:48,993 - app.clients.bloomberg_client - INFO - REMOTE RAW OUTPUT: JSON_START
[{"Company_code": "ALC US Equity", "update_date": "2026-01-13 19:39:49", "currency": "USD", "indicator": "company_name", "value": "ALCON INC", "value_date": "2026-01-13 19:39:49"}, {"Company_code": "ALC US Equity", "update_date": "2026-01-13 19:39:49", "currency": "USD", "indicator": "pe_ratio", "value": "38.14150972186395", "value_date": "2026-01-13 19:39:49"}, {"Company_code": "ALC US Equity", "update_date": "2026-01-13 19:39:49", "currency": "USD", "indicator": "pb_ratio", "value": "1.7983533595854697", "value_date": "2026-01-13 19:39:49"}, {"Company_code": "ALC US Equity", "update_date": "2026-01-13 19:39:49", "currency": "USD", "indicator": "Rev_Abroad", "value": "99.20290586217334", "value_date": "2026-01-13 19:39:49"}, {"Company_code": "ALC US Equity", "update_date": "2026-01-13 19:39:49", "currency": "USD", "indicator": "dividend_yield", "value": "0.41175859416147403", "value_date": "2026-01-13 19:39:49"}, {"Company_code": "ALC US Equity", "update_date": "2026-01-13
2026-01-13 19:39:48,994 - app.clients.bloomberg_client - INFO - ✅ Parsed 6 items from remote.
2026-01-13 19:39:48,994 - app.clients.bloomberg_client - INFO - DEBUG: basic_data before save: [{'Company_code': 'ALC US Equity', 'update_date': '2026-01-13 19:39:49', 'currency': 'USD', 'indicator': 'company_name', 'value': 'ALCON INC', 'value_date': '2026-01-13 19:39:49'}, {'Company_code': 'ALC US Equity', 'update_date': '2026-01-13 19:39:49', 'currency': 'USD', 'indicator': 'pe_ratio', 'value': '38.14150972186395', 'value_date': '2026-01-13 19:39:49'}, {'Company_code': 'ALC US Equity', 'update_date': '2026-01-13 19:39:49', 'currency': 'USD', 'indicator': 'pb_ratio', 'value': '1.7983533595854697', 'value_date': '2026-01-13 19:39:49'}, {'Company_code': 'ALC US Equity', 'update_date': '2026-01-13 19:39:49', 'currency': 'USD', 'indicator': 'Rev_Abroad', 'value': '99.20290586217334', 'value_date': '2026-01-13 19:39:49'}, {'Company_code': 'ALC US Equity', 'update_date': '2026-01-13 19:39:49', 'currency': 'USD', 'indicator': 'dividend_yield', 'value': '0.41175859416147403', 'value_date': '2026-01-13 19:39:49'}, {'Company_code': 'ALC US Equity', 'update_date': '2026-01-13 19:39:49', 'currency': 'USD', 'indicator': 'market_cap', 'value': '40405.742', 'value_date': '2026-01-13 19:39:49'}]
2026-01-13 19:39:52,098 - app.clients.bloomberg_client - INFO - ✅ Saved 6 records to database.
2026-01-13 19:39:52,101 - app.clients.bloomberg_client - INFO - Fetching Currency Data...
2026-01-13 19:39:52,102 - app.services.data_fetcher_service - INFO - 🔄 [进度更新] ID=94, Msg=正在获取货币指标 (USD)..., Progress=41%
2026-01-13 19:39:54,081 - app.clients.bloomberg_client - INFO - REMOTE RAW OUTPUT: JSON_START
[{"Company_code": "ALC US Equity", "update_date": "2026-01-13 19:39:52", "currency": "USD", "indicator": "Revenue", "value": "6596.0", "value_date": "2016-12-31"}, {"Company_code": "ALC US Equity", "update_date": "2026-01-13 19:39:52", "currency": "USD", "indicator": "Net_Income", "value": "-170.0", "value_date": "2016-12-31"}, {"Company_code": "ALC US Equity", "update_date": "2026-01-13 19:39:52", "currency": "USD", "indicator": "Cash_From_Operating", "value": "1245.0", "value_date": "2016-12-31"}, {"Company_code": "ALC US Equity", "update_date": "2026-01-13 19:39:52", "currency": "USD", "indicator": "Capital_Expenditure", "value": "-476.0", "value_date": "2016-12-31"}, {"Company_code": "ALC US Equity", "update_date": "2026-01-13 19:39:52", "currency": "USD", "indicator": "Free_Cash_Flow", "value": "769.0", "value_date": "2016-12-31"}, {"Company_code": "ALC US Equity", "update_date": "2026-01-13 19:39:52", "currency": "USD", "indicator": "Dividends_Paid", "value": "0.0", "v
2026-01-13 19:39:54,082 - app.clients.bloomberg_client - INFO - ✅ Parsed 194 items from remote.
2026-01-13 19:40:15,455 - app.clients.bloomberg_client - INFO - ✅ Saved 194 records to database.
2026-01-13 19:40:15,457 - app.clients.bloomberg_client - INFO - Fetching Non-Currency Data...
2026-01-13 19:40:15,457 - app.services.data_fetcher_service - INFO - 🔄 [进度更新] ID=94, Msg=正在获取非货币指标..., Progress=55%
2026-01-13 19:40:17,637 - app.clients.bloomberg_client - INFO - REMOTE RAW OUTPUT: JSON_START
[{"Company_code": "ALC US Equity", "update_date": "2026-01-13 19:40:16", "currency": "USD", "indicator": "Gross_Margin", "value": "47.1649", "value_date": "2016-12-31"}, {"Company_code": "ALC US Equity", "update_date": "2026-01-13 19:40:16", "currency": "USD", "indicator": "EBITDA_margin", "value": "19.6938", "value_date": "2016-12-31"}, {"Company_code": "ALC US Equity", "update_date": "2026-01-13 19:40:16", "currency": "USD", "indicator": "Net_Profit_Margin", "value": "-2.5773", "value_date": "2016-12-31"}, {"Company_code": "ALC US Equity", "update_date": "2026-01-13 19:40:16", "currency": "USD", "indicator": "Tax_Rate", "value": "0.1792", "value_date": "2016-12-31"}, {"Company_code": "ALC US Equity", "update_date": "2026-01-13 19:40:16", "currency": "USD", "indicator": "Gross_Margin", "value": "47.1731", "value_date": "2017-12-31"}, {"Company_code": "ALC US Equity", "update_date": "2026-01-13 19:40:16", "currency": "USD", "indicator": "EBITDA_margin", "value": "18.5071", "
2026-01-13 19:40:17,638 - app.clients.bloomberg_client - INFO - ✅ Parsed 123 items from remote.
2026-01-13 19:40:29,712 - app.clients.bloomberg_client - INFO - ✅ Saved 123 records to database.
2026-01-13 19:40:29,713 - app.clients.bloomberg_client - INFO - Fetching Price Data (Aligned)...
2026-01-13 19:40:29,713 - app.services.data_fetcher_service - INFO - 🔄 [进度更新] ID=94, Msg=正在获取价格指标..., Progress=69%
2026-01-13 19:40:30,589 - app.clients.bloomberg_client - INFO - Found 9 revenue reporting dates. Fetching aligned price data...
2026-01-13 19:40:41,551 - app.clients.bloomberg_client - INFO - REMOTE RAW OUTPUT: JSON_START
[{"Company_code": "ALC US Equity", "update_date": "2026-01-13 19:40:30", "currency": "USD", "indicator": "Last_Price", "value": "84.89", "value_date": "2024-12-31"}, {"Company_code": "ALC US Equity", "update_date": "2026-01-13 19:40:30", "currency": "USD", "indicator": "Market_Cap", "value": "42419.533", "value_date": "2024-12-31"}, {"Company_code": "ALC US Equity", "update_date": "2026-01-13 19:40:30", "currency": "USD", "indicator": "Dividend_Yield", "value": "0.3118", "value_date": "2024-12-31"}, {"Company_code": "ALC US Equity", "update_date": "2026-01-13 19:40:30", "currency": "USD", "indicator": "Last_Price", "value": "78.12", "value_date": "2023-12-31"}, {"Company_code": "ALC US Equity", "update_date": "2026-01-13 19:40:30", "currency": "USD", "indicator": "Market_Cap", "value": "39036.564", "value_date": "2023-12-31"}, {"Company_code": "ALC US Equity", "update_date": "2026-01-13 19:40:30", "currency": "USD", "indicator": "Dividend_Yield", "value": "0.3018", "value_da
2026-01-13 19:40:41,553 - app.clients.bloomberg_client - INFO - ✅ Parsed 16 items from remote.
2026-01-13 19:40:43,095 - app.clients.bloomberg_client - INFO - ✅ Saved 16 records to database.
2026-01-13 19:40:43,096 - app.services.data_fetcher_service - INFO - 🔄 [进度更新] ID=94, Msg=Finalizing data..., Progress=82%
2026-01-13 19:40:44,353 - app.clients.bloomberg_client - INFO - ✅ Cleanup and View Refresh completed.
2026-01-13 19:40:44,354 - app.clients.bloomberg_client - INFO - ✅ Completed processing for ALC US Equity
2026-01-13 19:40:44,354 - app.services.data_fetcher_service - INFO - 🔄 [进度更新] ID=94, Msg=Bloomberg data sync complete, Progress=90%
2026-01-13 19:40:45,530 - app.services.data_fetcher_service - INFO - 🔄 [进度更新] ID=94, Msg=Bloomberg 数据同步完成, Progress=100%

View File

@ -34,7 +34,7 @@ export function HeaderSearch({ defaultDataSource }: { defaultDataSource?: string
setOpen(true)
try {
// Using default model for light search
const data = await searchStock(query, "gemini-2.5-flash")
const data = await searchStock(query, "gemini-3-flash-preview")
setResults(Array.isArray(data) ? data : [])
} catch (err) {
console.error("Search failed", err)