fix(playground): send selected group in API payload

Previously, the Playground UI allowed users to pick a group, but the request body sent to `/pg/chat/completions` did not include this information, so the backend always fell back to the user’s default group.

Changes introduced
• web/src/helpers/api.js – added `group: inputs.group` to the `payload` built in `buildApiPayload`.

Outcome
• Selected group is now transmitted to the backend, enabling proper channel routing and pricing logic based on group ratios.
• Resolves the issue where group selection appeared ineffective in the Playground.
This commit is contained in:
Apple\Apple
2025-06-16 00:58:47 +08:00
parent 0089157b83
commit aa793088ed

View File

@@ -82,6 +82,7 @@ export const buildApiPayload = (messages, systemPrompt, inputs, parameterEnabled
const payload = {
model: inputs.model,
group: inputs.group,
messages: processedMessages,
stream: inputs.stream,
};