You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-9Lines changed: 7 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -126,7 +126,7 @@ The module provides a hooks system that allows you to dynamically extend both do
126
126
127
127
### Available Hooks
128
128
129
-
#### `generate:llms(event, options)`
129
+
#### `llms:generate(event, options)`
130
130
131
131
This hook is called for every request to `/llms.txt`. Use this hook to modify the structured documentation, It allows you to add sections, links, and metadata.
132
132
@@ -135,7 +135,7 @@ This hook is called for every request to `/llms.txt`. Use this hook to modify th
135
135
-`options`: ModuleOptions - The module options that you can modify to add sections, links, etc.
* @deprecated Custom hooks are deprecated in favor of NitroRuntimeHooks.
18
+
*/
10
19
exportconstllmsHooks=createHooks<LLMSHooks>()
11
20
21
+
llmsHooks.beforeEach(()=>{
22
+
console.warn('[nuxt-llms] `llmsHooks` are deprecated and will be removed in future versions. Use `useNitroApp().hooks.hook(\'llms:generate\', (event, options) => {})` instead')
23
+
})
24
+
12
25
/**
13
26
* Run a callback when LLMs is being generated.
27
+
*
28
+
* @deprecated Use `useNitroApp().hooks.hook('llms:generate', (event, options) => {})` instead
0 commit comments