Update project and configurations

This commit is contained in:
Zou-Seay
2026-06-11 16:28:00 +08:00
parent 12d3922091
commit a29a91867d
237 changed files with 164880 additions and 90 deletions

2
archive/test-ai.js Normal file
View File

@@ -0,0 +1,2 @@
const { streamText } = require('ai');
console.log(Object.keys(streamText({})));

9
archive/test-ai.mjs Normal file
View 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')));