diff --git a/api-reference/elements/pdf.mdx b/api-reference/elements/pdf.mdx index e0be4ea..2fd66c6 100644 --- a/api-reference/elements/pdf.mdx +++ b/api-reference/elements/pdf.mdx @@ -30,6 +30,11 @@ The `Pdf` class allows you to display a PDF hosted remotely or locally in the ch content for a local PDF (or url for a remote PDF). + + The default rendered page. Must be an integer greater than 0 and less than or + equal to the total number of pages in the PDF. The default value is 1. + + ## Example ### Inline @@ -41,7 +46,7 @@ import chainlit as cl async def main(): # Sending a pdf with the local file path elements = [ - cl.Pdf(name="pdf1", display="inline", path="./pdf1.pdf") + cl.Pdf(name="pdf1", display="inline", path="./pdf1.pdf", page=1) ] cl.Message(content="Look at this local pdf!", elements=elements).send() @@ -58,7 +63,7 @@ import chainlit as cl async def main(): # Sending a pdf with the local file path elements = [ - cl.Pdf(name="pdf1", display="side", path="./pdf1.pdf") + cl.Pdf(name="pdf1", display="side", path="./pdf1.pdf", page=1) ] # Reminder: The name of the pdf must be in the content of the message await cl.Message(content="Look at this local pdf1!", elements=elements).send() diff --git a/data-persistence/custom.mdx b/data-persistence/custom.mdx index 8a79dbf..6a2796d 100644 --- a/data-persistence/custom.mdx +++ b/data-persistence/custom.mdx @@ -52,7 +52,6 @@ CREATE TABLE IF NOT EXISTS steps ( "type" TEXT NOT NULL, "threadId" UUID NOT NULL, "parentId" UUID, - "disableFeedback" BOOLEAN NOT NULL, "streaming" BOOLEAN NOT NULL, "waitForAnswer" BOOLEAN, "isError" BOOLEAN,