sh: Get llm credentials from dotter
This commit is contained in:
parent
d1c37d36a9
commit
91b523dac5
1 changed files with 17 additions and 0 deletions
17
sh/.config/sh/env.d/llm-api.sh
Normal file
17
sh/.config/sh/env.d/llm-api.sh
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#!/usr/bin/env sh
|
||||
# API keys for LLM providers
|
||||
#
|
||||
# Received from dotter variables
|
||||
|
||||
{{#if cred_llm_groq_api_key}}
|
||||
export GROQ_API_KEY="{{cred_llm_groq_api_key}}"
|
||||
{{/if}}
|
||||
{{#if cred_llm_groq_api_key}}
|
||||
export GH_COPILOT_TOKEN="{{cred_llm_gh_copilot_token}}"
|
||||
{{/if}}
|
||||
{{#if cred_llm_groq_api_key}}
|
||||
export ANTHROPIC_API_KEY="{{cred_llm_anthropic_api_key}}"
|
||||
{{/if}}
|
||||
{{#if cred_llm_groq_api_key}}
|
||||
export GEMINI_API_KEY="{{cred_llm_gemini_api_key}}"
|
||||
{{/if}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue