Skip to content

Instantly share code, notes, and snippets.

View jerome-benoit's full-sized avatar
🎯
Focusing

Jérôme Benoit jerome-benoit

🎯
Focusing
View GitHub Profile
@jerome-benoit
jerome-benoit / reproduce-actual-400-from-log.mjs
Created January 21, 2026 11:50
SAP AI Core bug reproduction: HTTP 400 'Unused parameters: question'
#!/usr/bin/env node
import fs from "fs";
import { loadCredentials } from "./reproduce-utils.mjs";
import { OrchestrationClient } from "@sap-ai-sdk/orchestration";
console.log("Loading actual failing request from log...");
const logContent = fs.readFileSync("/tmp/requete-400-candidate.json", "utf-8");
const jsonStart = logContent.indexOf("{");
const requestBody = JSON.parse(logContent.substring(jsonStart));
@jerome-benoit
jerome-benoit / CircularArray.md
Last active September 3, 2022 22:07
TypeScript circular array module
/**
 * Default circular array size.
 */
export const DEFAULT_CIRCULAR_ARRAY_SIZE = 2000

/** Array with a maximum length shifting items when full. */
export class CircularArray<T> extends Array<T> {
  /** @inheritdoc */
  public size: number
@jerome-benoit
jerome-benoit / Update-AUPackages.md
Last active November 7, 2020 12:16
Update-AUPackages Report #powershell #chocolatey