https://promptfoo.dev/ logo
Rename Providers using openai spec
# ❓|questions
w
I'm running some tests with groq right now according to the docs:
Copy code
providers:
  - id: openai:chat:mixtral-8x7b-32768
    config:
      apiBaseUrl: https://api.groq.com/openai/v1
      apiKeyEnvar: GROQ_API_KEY
  - id: openai:chat:llama2-70b-4096
    config:
      apiBaseUrl: https://api.groq.com/openai/v1
      apiKeyEnvar: GROQ_API_KEY
Looks like the model name is passed in via the
id
. Totally fine with me, but I just want to be able to rename the column to show groq somewhere, otherwise it gets pretty confusing when comparing providers because the columns all show
openai:chat:model
Is there a way to rename this? Tbh it does feel a bit awkward to use the
id
field to handle the model.
i
Yep you can set
label
and that will show instead of the id
w
thank you!
2 Views