Update project and configurations
This commit is contained in:
9
archive/test-ai.mjs
Normal file
9
archive/test-ai.mjs
Normal file
@@ -0,0 +1,9 @@
|
||||
import { streamText } from 'ai';
|
||||
const mockModel = {
|
||||
provider: 'mock',
|
||||
specificationVersion: 'v1',
|
||||
defaultObjectGenerationMode: 'json',
|
||||
doStream: async () => ({ stream: new ReadableStream(), rawCall: { rawPrompt: '', rawSettings: {} } })
|
||||
};
|
||||
const result = streamText({ model: mockModel, messages: [] });
|
||||
console.log(Object.keys(result).filter(k => k.includes('to')));
|
||||
Reference in New Issue
Block a user