Skip to content

Commit

Permalink
Fix string operators (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
langchain-infra authored Oct 25, 2023
1 parent 86494ca commit 80298fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions terraform/modules/chat_langchain_backend/main.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Common environment variables
locals {
voyager_vars = var.voyage_ai_url && var.voyage_ai_model ? {
VOYAGE_AI_URL = var.voyage_ai_url
VOYAGE_AI_MODEL = var.voyage_ai_model
}: {}
voyager_vars = var.voyage_ai_url != "" && var.voyage_ai_model != "" ? {
VOYAGE_AI_URL = var.voyage_ai_url
VOYAGE_AI_MODEL = var.voyage_ai_model
} : {}
env_vars = merge(local.voyager_vars, {
OPENAI_API_KEY = var.openai_api_key
WEAVIATE_URL = var.weaviate_url
Expand Down

0 comments on commit 80298fc

Please sign in to comment.