Skip to content

Commit e101b55

Browse files
teknium1Test
andauthored
docs: escape {id} in api-server.md headings to fix MDX build (NousResearch#1787)
MDX v2+ interprets curly braces in regular markdown as JSX expressions. The headings 'GET /v1/responses/{id}' and 'DELETE /v1/responses/{id}' caused a ReferenceError during Docusaurus static site generation because 'id' is not a defined JavaScript variable. Escaped with backslashes. Co-authored-by: Test <test@test.com>
1 parent 698edfd commit e101b55

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

website/docs/user-guide/features/api-server.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,11 +136,11 @@ Use the `conversation` parameter instead of tracking response IDs:
136136

137137
The server automatically chains to the latest response in that conversation. Like the `/title` command for gateway sessions.
138138

139-
### GET /v1/responses/{id}
139+
### GET /v1/responses/\{id\}
140140

141141
Retrieve a previously stored response by ID.
142142

143-
### DELETE /v1/responses/{id}
143+
### DELETE /v1/responses/\{id\}
144144

145145
Delete a stored response.
146146

0 commit comments

Comments
 (0)