update
This commit is contained in:
parent
ac79bcba2a
commit
f2452ef445
2 changed files with 4 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ return {
|
||||||
opts = {
|
opts = {
|
||||||
strategies = {
|
strategies = {
|
||||||
chat = { adapter = "openai" },
|
chat = { adapter = "openai" },
|
||||||
inline = { adapter = "ollama" },
|
inline = { adapter = "mistral" },
|
||||||
},
|
},
|
||||||
adapters = {
|
adapters = {
|
||||||
opts = {
|
opts = {
|
||||||
|
|
|
||||||
|
|
@ -3,6 +3,7 @@ set-cred ()
|
||||||
export BW_SESSION="$(bw unlock $(secret-tool lookup drive bitwarden) --raw)"
|
export BW_SESSION="$(bw unlock $(secret-tool lookup drive bitwarden) --raw)"
|
||||||
printf "$(bw get password cli-gitlab)" | secret-tool store --label='Gitlab Token for CLI' 'token' 'GITLAB_TOKEN'
|
printf "$(bw get password cli-gitlab)" | secret-tool store --label='Gitlab Token for CLI' 'token' 'GITLAB_TOKEN'
|
||||||
printf "$(bw get password cli-ollama-token)" | secret-tool store --label='Ollama Token for CLI' 'token' 'OLLAMA_TOKEN'
|
printf "$(bw get password cli-ollama-token)" | secret-tool store --label='Ollama Token for CLI' 'token' 'OLLAMA_TOKEN'
|
||||||
|
printf "$(bw get password cli-litellm-token)" | secret-tool store --label='LiteLLM Token for CLI' 'token' 'LITELLM_TOKEN'
|
||||||
|
|
||||||
unset BW_SESSION
|
unset BW_SESSION
|
||||||
}
|
}
|
||||||
|
|
@ -11,12 +12,14 @@ set-env ()
|
||||||
{
|
{
|
||||||
export GITLAB_TOKEN="$(secret-tool lookup token GITLAB_TOKEN)"
|
export GITLAB_TOKEN="$(secret-tool lookup token GITLAB_TOKEN)"
|
||||||
export OLLAMA_TOKEN="$(secret-tool lookup token OLLAMA_TOKEN)"
|
export OLLAMA_TOKEN="$(secret-tool lookup token OLLAMA_TOKEN)"
|
||||||
|
export LITELLM_TOKEN="$(secret-tool lookup token LITELLM_TOKEN)"
|
||||||
}
|
}
|
||||||
|
|
||||||
clear-env ()
|
clear-env ()
|
||||||
{
|
{
|
||||||
unset GITLAB_TOKEN
|
unset GITLAB_TOKEN
|
||||||
unset OLLAMA_TOKEN
|
unset OLLAMA_TOKEN
|
||||||
|
unset LITELLM_TOKEN
|
||||||
}
|
}
|
||||||
|
|
||||||
tmux-new () {
|
tmux-new () {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue