mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 13:10:22 +00:00
fix: set authHeader: true by default for MiniMax API provider (#27622)
* Update onboard-auth.config-minimax.ts fix issue #27600 * fix(minimax): default authHeader for implicit + onboarding providers (#27600) Landed from contributor PR #27622 by @riccoyuanft and PR #27631 by @kevinWangSheng. Includes a small TS nullability guard in lane delivery to keep build green on rebased head. Co-authored-by: riccoyuanft <riccoyuan@gmail.com> Co-authored-by: Kevin Shenghui <shenghuikevin@github.com> --------- Co-authored-by: Peter Steinberger <steipete@gmail.com> Co-authored-by: Kevin Shenghui <shenghuikevin@github.com>
This commit is contained in:
@@ -109,11 +109,15 @@ export function createLaneTextDeliverer(params: CreateLaneTextDelivererParams) {
|
||||
text: string;
|
||||
skipRegressive: "always" | "existingOnly";
|
||||
hadPreviewMessage: boolean;
|
||||
}): boolean =>
|
||||
Boolean(args.currentPreviewText) &&
|
||||
args.currentPreviewText.startsWith(args.text) &&
|
||||
args.text.length < args.currentPreviewText.length &&
|
||||
(args.skipRegressive === "always" || args.hadPreviewMessage);
|
||||
}): boolean => {
|
||||
const currentPreviewText = args.currentPreviewText;
|
||||
return (
|
||||
currentPreviewText !== undefined &&
|
||||
currentPreviewText.startsWith(args.text) &&
|
||||
args.text.length < currentPreviewText.length &&
|
||||
(args.skipRegressive === "always" || args.hadPreviewMessage)
|
||||
);
|
||||
};
|
||||
|
||||
const tryEditPreviewMessage = async (args: {
|
||||
laneName: LaneName;
|
||||
|
||||
Reference in New Issue
Block a user