Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add API keys to AgenticSystemConfig instead of relying on dotenv #33

Merged
merged 2 commits into from
Aug 21, 2024

Conversation

ashwinb
Copy link
Contributor

@ashwinb ashwinb commented Aug 21, 2024

Ever since we introduced distributions, "internal" tools like Brave / Wolfram were broken. This was because we got their keys from .env, but the CWD for starting the distribution was inside the installed llama_toolchain package. There's no way a user could put a .env there.

Instead, I am moving the API keys specification to the AgenticSystemConfig -- a more natural place.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Meta Open Source bot. label Aug 21, 2024
@ashwinb ashwinb linked an issue Aug 21, 2024 that may be closed by this pull request
@hardikjshah
Copy link
Contributor

Looks good, assuming you ran test_e2e and it was all ok ?

@@ -178,6 +178,9 @@ class ModelEntry(BaseModel):
model_id: str
files: Dict[str, str]

class Config:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this needed in this PR ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it is technically not needed. it's an independent warning-fix. I can separately commit it

@ashwinb ashwinb merged commit ab0a24f into main Aug 21, 2024
3 checks passed
@ashwinb ashwinb deleted the apikeys branch August 21, 2024 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Meta Open Source bot.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tool Calling Not Working
3 participants