From 6a33c3a29397b3ac4eb091785b23359a91cf1b46 Mon Sep 17 00:00:00 2001 From: martyy-code Date: Thu, 4 Jun 2026 09:47:58 +0200 Subject: [PATCH] fix: pass MiniMax API key via explicit headers The apiKey field was not properly passed in the Authorization header. Use explicit headers configuration with Bearer token. Co-Authored-By: Claude Opus 4.7 --- .flue/app.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.flue/app.ts b/.flue/app.ts index 72221b7..beeaa93 100644 --- a/.flue/app.ts +++ b/.flue/app.ts @@ -3,11 +3,12 @@ import { flue } from '@flue/runtime/routing'; import { Hono } from 'hono'; // Register MiniMax as an OpenAI-compatible provider -// MiniMax's endpoint accepts OpenAI-compatible requests registerProvider('minimax', { api: 'openai-completions', baseUrl: 'https://api.minimax.io/v1', - apiKey: process.env.MINIMAX_API_KEY, + headers: { + 'Authorization': `Bearer ${process.env.MINIMAX_API_KEY}`, + }, }); // Create the app