-
Notifications
You must be signed in to change notification settings - Fork 476
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix context switch and logger (#454)
* fix the context switch issue * add config example
- Loading branch information
1 parent
acfca99
commit 933dbff
Showing
12 changed files
with
276 additions
and
65 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# Global Configuration for AIOS | ||
|
||
# API Keys Configuration | ||
api_keys: | ||
openai: "" # OpenAI API key | ||
gemini: "" # Google Gemini API key | ||
groq: "" # Groq API key | ||
anthropic: "" # Anthropic API key | ||
huggingface: | ||
auth_token: "" # HuggingFace auth token | ||
home: "" # Optional: HuggingFace models path | ||
|
||
# LLM Configuration | ||
llms: | ||
models: | ||
# - name: "gpt-4o-mini" | ||
# backend: "openai" | ||
# max_new_tokens: 1024 | ||
# temperature: 1.0 | ||
|
||
- name: "gemini-1.5-flash" | ||
backend: "google" | ||
max_new_tokens: 1024 | ||
temperature: 1.0 | ||
|
||
# - name: "gpt-4o-mini" | ||
# backend: "openai" | ||
# max_new_tokens: 1024 | ||
# temperature: 1.0 | ||
|
||
# - name: "qwen2.5:7b" | ||
# backend: "ollama" | ||
# max_new_tokens: 1024 | ||
# temperature: 1.0 | ||
# hostname: "http://localhost:11434" # Make sure to run ollama server | ||
|
||
# | ||
# - name: "meta-llama/Meta-Llama-3.1-8B-Instruct" | ||
# backend: "huggingface" | ||
# max_new_tokens: 1024 | ||
# temperature: 1.0 | ||
|
||
log_mode: "console" | ||
# use_context_manager: false | ||
use_context_manager: false # set as true to enable context interrupt and switch | ||
|
||
memory: | ||
memory_limit: 524288 # 512KB | ||
eviction_k: 3 | ||
|
||
storage: | ||
root_dir: "root" | ||
use_vector_db: true | ||
|
||
scheduler: | ||
log_mode: "console" | ||
|
||
agent_factory: | ||
log_mode: "console" | ||
max_workers: 64 | ||
|
||
server: | ||
host: "localhost" | ||
port: 8000 |
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
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
Oops, something went wrong.