Closed
Description
Description
ai: 4.1.17
typescript: 5.7.3
tsconfig.json:
{
"compilerOptions": {
"outDir": "./dist",
"module": "CommonJS",
"target": "ES2022",
"strict": true,
"sourceMap": false,
"allowJs": true,
"esModuleInterop": true
},
"include": ["**/*.ts"],
"exclude": ["node_modules", "dist", "index.old.ts"]
}
If I try to compile with tsc, I get lot of the following errors:
Property '_internal' does not exist on type '{ chunks: T[]; initialDelayInMs?: number; chunkDelayInMs?: number; }'
Any idea why?
Code example
import { CoreMessage, generateText } from 'ai';
let { text } = await generateText({
model: openai(configuration.openAI.model),
messages,
temperature: 0.2,
});
AI provider
No response
Additional context
No response