-
Notifications
You must be signed in to change notification settings - Fork 460
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add dynamic LLM configuration support in AIOS kernel (#425)
* Fix * Feat: Prioritize API Key from Config File Problem: The system was using environment variables for API keys. Solution: Changed the code to first check the config file for API keys. If not found, it falls back to environment variables. Impact: Ensures API keys are managed centrally in the config file, improving flexibility and control. * Update adapter.py * fix: use PR code instead of main branch in workflow Before: Workflow always used main branch code After: Workflow uses PR code when testing PR * Update test_ollama.yml * Update test_ollama.yml * Update test_ollama.yml * Update README: Add AIOS Refresh Command * feat: Add dynamic LLM configuration support in AIOS kernel # Description This PR enables AIOS kernel to dynamically handle LLM configurations from users, allowing: 1. Dynamic API key updates for different LLM providers 2. Runtime configuration refresh without restart 3. Secure API key management ## Changes - Added config update endpoint in kernel - Added configuration refresh mechanism - Updated environment variable handling * Update kernel.py
- Loading branch information
1 parent
a8b07f3
commit c0f2437
Showing
2 changed files
with
85 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters