Skip to content

Commit

Permalink
bug: Fix make first-run command not setting proper Tavily api_key c…
Browse files Browse the repository at this point in the history
…onfig (#904)

* Modify tavily path var

* Add comment
  • Loading branch information
tianjing-li authored Jan 13, 2025
1 parent 6b5e295 commit f4d0172
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/backend/scripts/cli/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ class Tool(StrEnum):
},
}


# Perhaps there is a better way to do this by using the Settings
# class from the backend?
ENV_YAML_CONFIG_MAPPING = {
"USE_COMMUNITY_FEATURES": {
"type": "config",
Expand All @@ -87,7 +88,7 @@ class Tool(StrEnum):
"type": "config",
"path": "tools.python_interpreter.url",
},
"TAVILY_API_KEY": {"type": "secret", "path": "tools.tavily.api_key"},
"TAVILY_API_KEY": {"type": "secret", "path": "tools.tavily_web_search.api_key"},
"COHERE_API_KEY": {"type": "secret", "path": "deployments.cohere_platform.api_key"},
"SAGE_MAKER_ACCESS_KEY": {
"type": "secret",
Expand Down

0 comments on commit f4d0172

Please sign in to comment.