feat(README): 添加 OpenBB 市场数据集成
- 在 README.md 中添加了 OpenBB 市场数据集成的说明 - 更新了 doppler_config.py 中 Google GenAI 配置逻辑 - 移除了与 ADK 和 Ollama 相关的示例代码文件
This commit is contained in:
@@ -95,9 +95,12 @@ def get_google_genai_config() -> Dict[str, str]:
|
||||
Returns:
|
||||
Google GenAI配置字典
|
||||
"""
|
||||
use_vertex_ai = get_secret('GOOGLE_GENAI_USE_VERTEXAI', 'FALSE').upper() == 'TRUE'
|
||||
api_key = '' if use_vertex_ai else get_secret('GOOGLE_API_KEY', '')
|
||||
|
||||
return {
|
||||
'api_key': get_secret('GOOGLE_API_KEY', ''),
|
||||
'use_vertex_ai': get_secret('GOOGLE_GENAI_USE_VERTEXAI', 'FALSE'),
|
||||
'api_key': api_key,
|
||||
'use_vertex_ai': str(use_vertex_ai).upper(),
|
||||
'project_id': get_secret('GOOGLE_CLOUD_PROJECT_ID', ''),
|
||||
'location': get_secret('GOOGLE_CLOUD_LOCATION', 'us-central1'),
|
||||
'memory_bank_enabled': get_secret('VERTEX_MEMORY_BANK_ENABLED', 'TRUE'),
|
||||
@@ -238,4 +241,4 @@ def validate_config(mode: str = "hybrid") -> bool:
|
||||
if __name__ == "__main__":
|
||||
# 配置验证脚本
|
||||
print("🔧 验证配置...")
|
||||
validate_config()
|
||||
validate_config()
|
||||
|
||||
Reference in New Issue
Block a user