I am Importing providers from a yaml file (https://www.promptfoo.dev/docs/configuration/guide/#import-providers-from-separate-files)
For the below defaultTest Configuration
defaultTest:
options:
provider: file://./config/assert-provider.yaml
My Yaml File content is
provider:
text:
id: azureopenai:chat:gpt-4-test
config:
apiHost: host address
apiKey:
temperature: 0.7
embedding:
id: azureopenai:embeddings:text-embedding-ada-002
config:
apiHost: host address
apiKey:
When I execute the script
i am getting Invariant failed: Provider config
./config/assert—provider.yaml must have an id