Skip to content

Latest commit

 

History

History
6 lines (3 loc) · 397 Bytes

fallback.md

File metadata and controls

6 lines (3 loc) · 397 Bytes

🔄 Fallback

Malacca's fallback is designed to protect your API from upstream API failures. When the upstream API fails, Malacca will automatically fallback to the CF Workers AI. By default it will fallback to the @cf/meta/llama-3.1-8b-instruct model.

You can customize the fallback logical to fit your needs or change to another model by modifying the src/middlewares/fallback.ts file.