Skip to content

Refactor AI and web search implementations to use environment variable for API key#52

Merged
moonpyt merged 1 commit intoXSpoonAi:mainfrom
veithly:fix/desearch
Dec 6, 2025
Merged

Refactor AI and web search implementations to use environment variable for API key#52
moonpyt merged 1 commit intoXSpoonAi:mainfrom
veithly:fix/desearch

Conversation

@veithly
Copy link
Copy Markdown
Collaborator

@veithly veithly commented Dec 6, 2025

  • Replaced direct import of API key from the env module with retrieval from environment variables in ai_search_official.py, web_search_official.py, and builtin_tools.py.
  • Added error handling for missing DESEARCH_API_KEY to improve security and robustness.
  • Updated search execution methods in builtin_tools.py to call the new implementation functions directly, enhancing code clarity.

…e for API key

- Replaced direct import of API key from the env module with retrieval from environment variables in ai_search_official.py, web_search_official.py, and builtin_tools.py.
- Added error handling for missing DESEARCH_API_KEY to improve security and robustness.
- Updated search execution methods in builtin_tools.py to call the new implementation functions directly, enhancing code clarity.
@moonpyt moonpyt merged commit df59cad into XSpoonAi:main Dec 6, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants