https://promptfoo.dev/ logo
apiHost changed via CLI
# ❓|questions
b
Is it possible to change the apiHost via the CLI? We are executing promptfoo in a CI/CD pipeline which as it is promoted from different environments will require different apiHosts
m
Hi @beigesponge many providers allow you to override the base url with an env variable, for example export OPENAI_API_HOST=.... If you have a javascript / python provider I recommend using an env there, what type of provider are you using? If the override isn't available for it we can add it.
b
@michaelmichaelmichael we're using Azure. Is it just as easy as setting the env to AZURE_API_HOST?
m
pretty much. check out https://github.com/promptfoo/promptfoo/blob/main/src/providers/azureopenai.ts#L212-L213 You probably want to set AZURE_OPENAI_API_HOST