ai-agent-book 精选快照(<2MB 代码与文档,来自 github.com/bojieli/ai-agent-book)
Build latest book artifacts / build (push) Canceled after 0s
dependency resolution / resolve (3.11) (push) Canceled after 0s
dependency resolution / resolve (3.13) (push) Canceled after 0s
deploy-pages / build (push) Canceled after 0s
deploy-pages / deploy (push) Canceled after 0s
i18n consistency check / check (push) Canceled after 0s
provider adoption tests / test (chapter2/context-compression) (push) Canceled after 0s
provider adoption tests / test (chapter2/prompt-injection) (push) Canceled after 0s
provider adoption tests / test (chapter2/system-hint) (push) Canceled after 0s
provider adoption tests / test (chapter3/log-sanitization) (push) Canceled after 0s
web-search-agent tests / test (push) Canceled after 0s
web-search-agent tests / agentbook (push) Canceled after 0s
Build latest book artifacts / build (push) Canceled after 0s
dependency resolution / resolve (3.11) (push) Canceled after 0s
dependency resolution / resolve (3.13) (push) Canceled after 0s
deploy-pages / build (push) Canceled after 0s
deploy-pages / deploy (push) Canceled after 0s
i18n consistency check / check (push) Canceled after 0s
provider adoption tests / test (chapter2/context-compression) (push) Canceled after 0s
provider adoption tests / test (chapter2/prompt-injection) (push) Canceled after 0s
provider adoption tests / test (chapter2/system-hint) (push) Canceled after 0s
provider adoption tests / test (chapter3/log-sanitization) (push) Canceled after 0s
web-search-agent tests / test (push) Canceled after 0s
web-search-agent tests / agentbook (push) Canceled after 0s
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
"""Runtime configuration overlay for the pinned Generative Agents source.
|
||||
|
||||
The upstream project asks users to put a plaintext API key in its ``utils.py``.
|
||||
Experiment 10-5 instead imports this overlay ahead of the upstream source and
|
||||
reads credentials exclusively from the environment.
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
import os
|
||||
|
||||
|
||||
openai_api_key = os.environ["DASHSCOPE_API_KEY"]
|
||||
openai_api_base = os.environ.get(
|
||||
"GA_OPENAI_API_BASE",
|
||||
"https://dashscope-intl.aliyuncs.com/compatible-mode/v1",
|
||||
)
|
||||
key_owner = "ai-agent-book Experiment 10-5"
|
||||
|
||||
maze_assets_loc = os.environ["GA_MAZE_ASSETS_ROOT"]
|
||||
env_matrix = f"{maze_assets_loc}/the_ville/matrix"
|
||||
env_visuals = f"{maze_assets_loc}/the_ville/visuals"
|
||||
|
||||
fs_storage = os.environ["GA_STORAGE_ROOT"]
|
||||
fs_temp_storage = os.environ["GA_TEMP_STORAGE_ROOT"]
|
||||
|
||||
collision_block_id = "32125"
|
||||
debug = False
|
||||
Reference in New Issue
Block a user