worktree-citti-arkiver-tur #4
@@ -98,11 +98,13 @@ job "citti" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Claude key for DA translation + AI offer matching (same account as
|
# Claude key for DA translation + AI offer matching (same account as
|
||||||
# BlaaAi). keyOrDefault so a missing KV never blocks deploy — without it
|
# BlaaAi). Use citti's own Consul key if set, else fall back to the
|
||||||
# offers simply stay German and the token heuristic handles matching.
|
# existing blaaai/anthropic_api_key. `or` keeps it empty (not a deploy
|
||||||
|
# failure) if neither exists — offers then stay German with heuristic
|
||||||
|
# matching.
|
||||||
template {
|
template {
|
||||||
data = <<EOT
|
data = <<EOT
|
||||||
ANTHROPIC_API_KEY={{ keyOrDefault "citti/anthropic_api_key" "" }}
|
ANTHROPIC_API_KEY={{ or (keyOrDefault "citti/anthropic_api_key" "") (keyOrDefault "blaaai/anthropic_api_key" "") }}
|
||||||
EOT
|
EOT
|
||||||
destination = "secrets/app.env"
|
destination = "secrets/app.env"
|
||||||
env = true
|
env = true
|
||||||
|
|||||||
Reference in New Issue
Block a user