fix(proxy): preserve requestedModel fallback in embeddings forwardBody

This commit is contained in:
Hureru
2026-03-19 01:48:52 +08:00
parent bef1cd05ea
commit 7c6b729ce1
+1 -1
View File
@@ -56,7 +56,7 @@ export async function embeddingsProxyRoute(app: FastifyInstance) {
excludeChannelIds.push(selected.channel.id); excludeChannelIds.push(selected.channel.id);
const targetUrl = buildUpstreamUrl(selected.site.url, '/v1/embeddings'); const targetUrl = buildUpstreamUrl(selected.site.url, '/v1/embeddings');
const forwardBody = { ...body, model: selected.actualModel }; const forwardBody = { ...body, model: selected.actualModel || requestedModel };
const startTime = Date.now(); const startTime = Date.now();
try { try {