Skip to main content

Wenxin (ERNIE)

Requisites

To use Wenxin (ERNIE) models, you need to have the following credential information. You can get them by signing up at ERNIE.

Required credentials:

  • WENXIN_API_KEY: Your ERNIE Bot API Key for authentication.
  • WENXIN_SECRET_KEY: Your ERNIE Bot Secret Key for authentication.

Supported Models:

Enrie Bot

Model schema id: wenxin/ernie-bot

  • Function call: Supported
  • Streaming: Supported
  • Input token limit: 2000
  • Output token limit: 2048

Allowed Configs:

  • temperature
  • top_p
  • max_tokens
  • stop

Enrie Bot 4.0

Model schema id: wenxin/ernie-bot-4

  • Function call: Supported
  • Streaming: Not supported
  • Input token limit: 5000
  • Output token limit: 2048

Allowed Configs:

  • temperature
  • top_p
  • max_tokens
  • stop

Enrie Bot 8k

Model schema id: wenxin/ernie-bot-8k

  • Function call: Supported
  • Streaming: Not supported
  • Input token limit: 5000
  • Output token limit: 2048

Allowed Configs:

  • temperature
  • top_p
  • max_tokens
  • stop

Enrie Bot Turbo

Model schema id: wenxin/ernie-bot-turbo

  • Function call: Not supported
  • Streaming: Not supported
  • Input token limit: 7000
  • Output token limit: 2048

Allowed Configs:

  • temperature
  • top_p