-
Notifications
You must be signed in to change notification settings - Fork 4
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
fix: add in the IR endpoint identifier (optionally) to have a more unique id #881
Conversation
FER-1739 [OctoAI, MultiOn] Streaming + non streaming code snippets correctly matched up by FDR
Today FDR matches by method and path name, but streaming/non-streaming endpoints have the same method and path name. We'll need to add some more data to the |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
🌿 Preview your docs: https://fern-preview-5f373f50-da54-4bba-bc9c-accfe4c7492f.docs.buildwithfern.com |
🌿 Preview your docs: https://fern-preview-2845ae17-b8a4-4b54-b014-7e4c9cd16209.docs.buildwithfern.com |
🌿 Preview your docs: https://fern-preview-f85aff34-d06e-4c2c-bf6f-5587befb4aae.docs.buildwithfern.com |
🌿 Preview your docs: https://fern-preview-da2ae73a-1e78-46d4-b07b-8735e8dbfb2a.docs.buildwithfern.com |
🌿 Preview your docs: https://fern-preview-7d13f2e7-d4e0-4d55-8b75-e21635cdbc22.docs.buildwithfern.com |
🌿 Preview your docs: https://fern-preview-20c154a3-6596-4789-9157-98480e6f6e70.docs.buildwithfern.com |
🌿 Preview your docs: https://fern-preview-5bb9f0bf-bc5a-4ba7-9862-a9ef62b46248.docs.buildwithfern.com |
Fixes FER-1739
Currently our snippets get conflicted when you have two different SDK functions working off of the same endpoint method and path (think
GET /chat
which supports stream and non-stream), we do this for streaming endpoints (a lot for chat complete with AI companies), and it's really easy to do with a fern definition.This PR as well as the one in Fiddle (https://github.com/fern-api/fiddle/pull/379) optionally add in the endpoint ID from the IR, which is unique, and swap filtering and selecting snippets to leverage this ID where possible
This will also require generator changes