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:
J Chris Anderson
2025-03-18 21:10:07 -07:00
parent 1d1f9d6b03
commit 3dd0b3c5a2
9 changed files with 5919 additions and 27 deletions

View File

@@ -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.'));