From e9fecbbed12e3ab5cdead538f06a39e636a915d4 Mon Sep 17 00:00:00 2001 From: Alex Yuan Date: Mon, 9 Nov 2026 20:24:47 -0800 Subject: [PATCH] Remove the note that top_p is unsupported in the API docs Drop the warning from the text generation guide and the top_p example from the 400 row of the error codes page. Co-Authored-By: Claude Opus 5.5 --- api/guides/text-generation.mdx | 4 ---- api/reference/error-codes.mdx | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/api/guides/text-generation.mdx b/api/guides/text-generation.mdx index 09266ab1..aed1d1a9 100644 --- a/api/guides/text-generation.mdx +++ b/api/guides/text-generation.mdx @@ -76,10 +76,6 @@ See [Chat template](/lfm/key-concepts/chat-template) and [Text generation and pr The API forwards OpenAI's chat parameters, such as `temperature`, `max_tokens`, and `stop`, to the model. It also forwards `top_k` and `repetition_penalty`, which are not part of OpenAI's API: in the Python SDK, pass them in `extra_body`. - - `top_p` is not supported and returns `400`. - - ## Streaming Set `stream` to `true` to receive the reply as server-sent events while the model generates it. Each chunk carries the next piece of text in `choices[0].delta.content`, and the final usage chunk carries `usage`. diff --git a/api/reference/error-codes.mdx b/api/reference/error-codes.mdx index 41c68402..656a71cc 100644 --- a/api/reference/error-codes.mdx +++ b/api/reference/error-codes.mdx @@ -22,7 +22,7 @@ Errors use OpenAI's shape, so the official SDKs raise their usual exceptions and | Status | `type` | Cause | What to do | | ------ | ------ | ----- | ---------- | -| `400` | `invalid_request_error` | The request body is invalid, for example a missing field, an unsupported parameter such as `top_p`, or an input type the model doesn't take. | Fix the field named in `param`. | +| `400` | `invalid_request_error` | The request body is invalid, for example a missing field, an unsupported parameter, or an input type the model doesn't take. | Fix the field named in `param`. | | `401` | `authentication_error` | The API key is missing, invalid, or revoked (code `invalid_api_key`). | Send a valid key as `Authorization: Bearer $LIQUID_API_KEY`. | | `402` | `insufficient_quota` | Your organization is not being served: it has no credit left and no card on file, or a payment failed (code `insufficient_quota`). | Add a card or settle the balance on the [Billing](https://console.liquid.ai/dashboard/billing) page. | | `403` | `permission_error` | Your organization can't use this feature, for example the Batch API before it is enabled (code `batch_api_not_enabled`). | [Contact us](https://www.liquid.ai/connect) to request access. |