provider-novita (Novita Provider)
This example shows how to use Novita through Promptfoo's OpenAI-compatible provider surface.
Content
provider-novita (Novita Provider)
This example shows how to use Novita through Promptfoo's OpenAI-compatible provider surface.
Setup
- Create a Novita API key.
- Export it locally:
export NOVITA_API_KEY=your_api_key_here
- Initialize and run the example:
npx promptfoo@latest init --example provider-novita
cd provider-novita
npx promptfoo@latest eval
What this example covers
- The
novita:chat:<model>provider format - Standard OpenAI-compatible provider options such as
temperature - A factual assertion that verifies the provider returns usable model output
Novita also exposes completion and embedding endpoints. See the provider documentation for their provider formats and custom endpoint options.
Source and license
- Source
- Promptfoo
- Original
- promptfoo/promptfoo/examples/provider-novita
- License
- MIT