autogluon / autogluon-assistant

ML Assistant for Competitive Machine Learning
Apache License 2.0
8 stars 0 forks source link

BUG [MacOS]: Config LLM script is broken #106

Closed AnirudhDagar closed 1 week ago

AnirudhDagar commented 1 week ago

When running source tools/configure_llms.sh, even without selecting a choice the script ends with an error. This is probably because of read -p.

=== LLM Configuration Tool ===

Select an option:
1) Configure LLM providers
2) View current configuration file
3) View current environment variables
tools/configure_llms.sh:read:297: -p: no coprocess
Invalid choice. Exiting.
FANGAreNotGnu commented 1 week ago

Fixed in https://github.com/autogluon/autogluon-assistant/pull/111.

AnirudhDagar commented 1 week ago

It still doesn't work for me:

  1. I am getting invalid api key for open ai, which i was able to fix
  2. but then the program gets stuck at the following
=== AGA LLM Configuration Tool ===

Select an option:
1) Configure LLM providers
2) View current configuration file
3) View current environment variables
Enter your choice (1/2/3): 1
Existing configuration found. Creating backup...
Backup created at /Users/anidagar/.llm_config.backup
Select your LLM provider to configure:
1) AWS Bedrock
2) OpenAI
Enter your choice (1/2): 2

Configuring OpenAI...
Enter your OpenAI API Key (starts with sk-): sk-<redacted_keys>
Note: Free-tier OpenAI accounts may be subject to rate limits.
We recommend using a paid OpenAI API key for seamless functionality.