Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LLMs.txt contains 5+ duplicate curl examples for some endpoints #5691

Open
hkosova opened this issue Jan 21, 2025 · 0 comments
Open

LLMs.txt contains 5+ duplicate curl examples for some endpoints #5691

hkosova opened this issue Jan 21, 2025 · 0 comments
Labels
bug Issues reporting bugs. product/docs Fern Docs which builds and hosts a developer documentation site

Comments

@hkosova
Copy link

hkosova commented Jan 21, 2025

CLI Version (from fern.config.json)

0.50.13, also 0.46.22

Minimal API Specification

N/a - could not narrow the issue down to a minimal test case.

Actual UI Behavior

/llms-full.txt and the .mdx files for some endpoints sometimes contain 5+ identical curl examples. I've seen this issue for GET, POST, PATCH, PUT, DELETE endpoints so it does not seem to be related to the HTTP method or the use of a request body.

You can see this in Fern API documentation:
https://buildwithfern.com/learn/cli-api/api-reference/snippets/get.mdx

## Examples

`` `shell
curl -X POST https://api.buildwithfern.com/snippets \
     -H "Authorization: Bearer <token>" \
     -H "Content-Type: application/json" \
     -d '{
  "endpoint": {
    "path": "/v1/search",
    "method": "GET"
  }
}'
`` `

`` `shell
curl -X POST https://api.buildwithfern.com/snippets \
     -H "Authorization: Bearer <token>" \
     -H "Content-Type: application/json" \
     -d '{
  "endpoint": {
    "path": "string",
    "method": "PUT"
  }
}'
`` `

... followed by 8 copies of the last example

Also seen in our API docs:

Expected UI Behavior

No duplicate examples for API endpoints in /llms-full.txt and .mdx files.

Steps to Reproduce

n/a

Environment Details

Node.js 22

@hkosova hkosova added bug Issues reporting bugs. product/docs Fern Docs which builds and hosts a developer documentation site labels Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues reporting bugs. product/docs Fern Docs which builds and hosts a developer documentation site
Development

No branches or pull requests

1 participant