From 165f9565f138d6d64d07ade9455dff4ae10dd092 Mon Sep 17 00:00:00 2001 From: billytrend-cohere <144115527+billytrend-cohere@users.noreply.github.com> Date: Fri, 27 Sep 2024 23:10:59 +0100 Subject: [PATCH] Fix sidebar (#168) * Move v2s to top * Fix endpoints layout * Hide * v1 --------- Signed-off-by: billytrend-cohere <144115527+billytrend-cohere@users.noreply.github.com> --- fern/v2.yml | 55 ++++++++++++++++++++++++++--------------------------- 1 file changed, 27 insertions(+), 28 deletions(-) diff --git a/fern/v2.yml b/fern/v2.yml index ef07359a..3258a6fe 100644 --- a/fern/v2.yml +++ b/fern/v2.yml @@ -568,7 +568,7 @@ navigation: python: "cohere" typescript: "cohere-ai" layout: - - section: Beta + - section: Endpoints skip-slug: true contents: - section: "v2/chat" @@ -580,16 +580,10 @@ navigation: - endpoint: STREAM /v2/chat slug: chat-stream-v2 title: Chat with Streaming - - section: Stable - skip-slug: true - contents: - - section: "v1/chat" + - section: "v2/rerank" skip-slug: true contents: - - endpoint: POST /v1/chat - title: Chat Non-streaming - - endpoint: STREAM /v1/chat - title: Chat Streaming + - POST /v2/rerank - section: "v2/embed" skip-slug: true contents: @@ -606,10 +600,6 @@ navigation: slug: get-embed-job - endpoint: POST /v1/embed-jobs/{id}/cancel slug: cancel-embed-job - - section: "v2/rerank" - skip-slug: true - contents: - - POST /v2/rerank - section: "v1/classify" skip-slug: true contents: @@ -678,35 +668,44 @@ navigation: slug: listevents - endpoint: GET /v1/finetuning/finetuned-models/{finetuned_model_id}/training-step-metrics slug: listtrainingstepmetrics - - section: Legacy - skip-slug: true - contents: - - section: "v1/embed" + - section: "v1/chat" + hidden: true skip-slug: true contents: - - POST /v1/embed - - section: "v1/rerank" + - endpoint: POST /v1/chat + slug: chat-v1 + title: Chat + - endpoint: STREAM /v1/chat + slug: chat-stream-v1 + title: Chat with Streaming + - section: "v1/generate" + hidden: true skip-slug: true contents: - - POST /v1/rerank - - section: "v1/classify" + - endpoint: POST /v1/generate + slug: generate-v1 + title: generate + - endpoint: STREAM /v1/generate + slug: generate-stream-v1 + title: generate with Streaming + - section: "v1/rerank" + hidden: true skip-slug: true contents: - - POST /v1/classify - - section: "v1/generate" + - POST /v1/rerank + - section: "v1/embed" + hidden: true skip-slug: true contents: - - endpoint: POST /v1/generate - title: Chat Non-streaming - - endpoint: STREAM /v1/generate - title: Chat Streaming + - POST /v1/embed - section: "v1/summarize" + hidden: true skip-slug: true contents: - POST /v1/summarize - section: "v1/check-api-key" - skip-slug: true hidden: true + skip-slug: true contents: - POST /v1/check-api-key - tab: release-notes