mirror of
https://github.com/stackblitz/bolt.new
synced 2025-06-26 18:17:50 +00:00
feat: enhance prompt functionality with library detection from chat history
- Updated Chat component to pass messages to enhancePrompt function. - Added OpenRouter API documentation to available documents. - Implemented functions to detect libraries mentioned in chat history and enhance prompts accordingly. - Updated API enhancer to utilize chat history for prompt enhancement. - Added tests for new functionality in llms-docs.spec.ts.
This commit is contained in:
@@ -19,6 +19,11 @@ const sources = [
|
||||
url: 'https://use-fireproof.com/llms.txt',
|
||||
outputPath: path.join(docsDir, 'fireproof.txt'),
|
||||
},
|
||||
{
|
||||
name: 'openrouter',
|
||||
url: 'https://openrouter.ai/docs/llms-full.txt',
|
||||
outputPath: path.join(docsDir, 'openrouter.txt'),
|
||||
},
|
||||
// Add more sources here as needed
|
||||
];
|
||||
|
||||
@@ -52,4 +57,4 @@ async function updateAll() {
|
||||
}
|
||||
}
|
||||
|
||||
updateAll().then(() => console.log('Done updating llms docs.'));
|
||||
updateAll().then(() => console.log('Done updating llms docs.'));
|
||||
|
||||
Reference in New Issue
Block a user