From e43ce676426469a8642db117acc48de540f920c6 Mon Sep 17 00:00:00 2001 From: Michal Nicpon Date: Fri, 28 Jun 2024 11:57:07 -0600 Subject: [PATCH] fix examples top k --- fern/docs/pages/quick_start.mdx | 2 +- fern/docs/pages/reference/chat.mdx | 4 ++-- fern/docs/pages/reference/completions.mdx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/fern/docs/pages/quick_start.mdx b/fern/docs/pages/quick_start.mdx index 268fd98..1fb6f1b 100644 --- a/fern/docs/pages/quick_start.mdx +++ b/fern/docs/pages/quick_start.mdx @@ -273,7 +273,7 @@ curl -i -X POST https://api.predictionguard.com/chat/completions \ "max_tokens": 1000, "temperature": 1.1, "top_p": 0.1, - "top_k": 50.0, + "top_k": 50, "output": { "factuality": true, "toxicity": true diff --git a/fern/docs/pages/reference/chat.mdx b/fern/docs/pages/reference/chat.mdx index 8049566..4916511 100644 --- a/fern/docs/pages/reference/chat.mdx +++ b/fern/docs/pages/reference/chat.mdx @@ -262,7 +262,7 @@ your application. "max_tokens": 1000, "temperature": 1.1, "top_p": 0.1, - "top_k": 50.0, + "top_k": 50, "output": { "factuality": false, "toxicity": true @@ -300,4 +300,4 @@ The output will look something like this. This approach presents a straightforward way for readers to choose and apply the code example that best suits their needs for generating text completions using -either Python, Go, Rust, JS, or cURL. \ No newline at end of file +either Python, Go, Rust, JS, or cURL. diff --git a/fern/docs/pages/reference/completions.mdx b/fern/docs/pages/reference/completions.mdx index ed4fbe4..5d52d0d 100644 --- a/fern/docs/pages/reference/completions.mdx +++ b/fern/docs/pages/reference/completions.mdx @@ -163,7 +163,7 @@ on your preference or requirements, select the appropriate method for your appli "max_tokens": 1000, "temperature": 1.1, "top_p": 0.1, - "top_k": 50.0, + "top_k": 50 }' ```