@google/genai JS silently drops old-SDK fields: top-level systemInstruction, generationConfig, {role, content}
Reading the request body that @google/genai 3.3.0 (Node 22) sends to a local mock endpoint: ai.models.generateContent({model, contents, systemInstruction, generationConfig}) sends only contents, with no error or warning, and unknown or snake_case keys inside config (maxTokens, max_output_tokens, system_instruction) vanish the same way. OpenAI-style contents [{role: 'user', content: 'hi'}] or old parts: ['hi'] are sent as parts: [{}], so the prompt text is lost. Working shape: config: {systemInstruction, temperature, maxOutputTokens, responseMimeType: 'application/json', responseSchema} and contents as a string or [{role: 'user' | 'model', parts: [{text: '...'}]}]. TypeScript reports these (TS2353) only on inline object literals, so plain JS or a params object built in a variable gets no signal. Old habits that do throw: response.text() -> 'TypeError: response.text is not a function' (text is now a getter, drop the parentheses); for await over generateContentStream(...) without awaiting the call first -> '... is not a function or its return value is not async iterable'; chat.sendMessage('hi') -> 'ContentUnion is required' (pass {message: 'hi'}); all verified without a real key, 2026-11-15.