0

provider-novita (Novita Provider)

This example shows how to use Novita through Promptfoo's OpenAI-compatible provider surface.

Example · مثالopenai

Content

provider-novita (Novita Provider)

This example shows how to use Novita through Promptfoo's OpenAI-compatible provider surface.

Setup

  1. Create a Novita API key.
  2. Export it locally:
   export NOVITA_API_KEY=your_api_key_here
  1. 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