File tree Expand file tree Collapse file tree 8 files changed +26
-4
lines changed Expand file tree Collapse file tree 8 files changed +26
-4
lines changed Original file line number Diff line number Diff line change 1515load_dotenv ()
1616chat_model = ChatBedrockAnthropic (
1717 model = "anthropic.claude-3-sonnet-20240229-v1:0" ,
18- # aws_secret_key=os.getenv("AWS_SECRET_KEY"),
19- # aws_access_key=os.getenv("AWS_ACCESS_KEY"),
20- # aws_region=os.getenv("AWS_REGION"),
21- # aws_account_id=os.getenv("AWS_ACCOUNT_ID"),
2218)
2319
2420# Set some Shiny page options
Original file line number Diff line number Diff line change 1+ # Once you provided your API key, rename this file to .env
2+ # The load_dotenv() in the app.py will then load this env variable
3+ AWS_SECRET_KEY = <Your AWS info here>
4+ AWS_ACCESS_KEY = <Your AWS info here>
5+ AWS_REGION = <Your AWS info here>
6+ AWS_ACCOUNT_ID = <Your AWS info here>
Original file line number Diff line number Diff line change 1+ # Once you provided your API key, rename this file to .env
2+ # The load_dotenv() in the app.py will then load this env variable
3+ AZURE_OPENAI_API_KEY = <Your Azure OpenAI API key>
Original file line number Diff line number Diff line change 1+ # Once you provided your API key, rename this file to .env
2+ # The load_dotenv() in the app.py will then load this env variable
3+ ANTHROPIC_API_KEY = <Your Anthropic API key>
Original file line number Diff line number Diff line change 1+ # Once you provided your API key, rename this file to .env
2+ # The load_dotenv() in the app.py will then load this env variable
3+ GOOGLE_API_KEY = <Your Google API key>
Original file line number Diff line number Diff line change 1+ # Once you provided your API key, rename this file to .env
2+ # The load_dotenv() in the app.py will then load this env variable
3+ OPENAI_API_KEY = <Your OpenAI API key>
Original file line number Diff line number Diff line change 1+ # Once you provided your API key, rename this file to .env
2+ # The load_dotenv() in the app.py will then load this env variable
3+ OPENAI_API_KEY = <Your OpenAI API key>
Original file line number Diff line number Diff line change 1+ # Once you provided your API key, rename this file to .env
2+ # The load_dotenv() in the app.py will then load this env variable
3+ ANTHROPIC_API_KEY = <Your Anthropic API key>
4+ OPENAI_API_KEY = <Your OpenAI API key>
5+ GOOGLE_API_KEY = <Your Google API key>
You can’t perform that action at this time.
0 commit comments