Enhance provider models and chat handling with new thinking configurations
This commit is contained in:
1 parent
ee1271b6fd
commit
4c28a1671d
15 files changed
+142
-421
No files matched your search
@@ -8,7 +8,7 @@ async function intercept(req, res, bodyBuffer, mappedModel) {
|
||||
try {
|
||||
const body = JSON.parse(bodyBuffer.toString());
|
||||
body.model = mappedModel;
|
||||
const routerRes = await fetchRouter(body);
|
||||
const routerRes = await fetchRouter(body, "/v1/chat/completions", req.headers);
|
||||
await pipeSSE(routerRes, res);
|
||||
} catch (error) {
|
||||
err(`[Kiro] ${error.message}`);
|
||||
|
||||
Reference in new issue
Block a user