Stay up to date with the latest changes to the Writer API and SDKs.
file_types
parameter to pass a comma-separated string of file extensions (without the dot) to the files.list
method. The following code shows how to filter for only PDF and DOCX files:files.list
method and its parameters, refer to the List Files API documentation.WRITER_JSON
mode in the Instructor integration. This mode allows you to receive structured output directly as JSON, following your specified schema, making it easier to work with validated, structured data from LLM responses./v1/files
endpoint now supports filtering files by extension type.To filter files by type, pass a comma-separated string of file extensions to the file_types
query parameter. For example, file_types=txt,pdf,docx
.file_types
parameter will be available in the next version of the Python and Node SDKs.application
to minimize breaking changes.The guides for invoking no-code apps, async applications, and using no-code apps as tools have been updated to reflect the new terminology. However, the Applications API reference documentation still reflects previous terminology./vision
endpoint./vision
endpoint analyzes images based on a prompt. You can use the endpoint for a variety of use cases, including:/vision
endpoint, or check out the full vision API reference.NoCodeAppTool
tool for using no-code applications as tools.LLMTool
tool for delegating to a specific Palmyra model.palmyra-fin
model ID. The palmyra-fin-32k
model ID is now deprecated.langchain-writer
, the official Writer LangChain integration. This release includes:ChatWriter
model for text generationGraphTool
for retrieving information from a Knowledge GraphPDFParser
for parsing PDFs and the WriterTextSplitter
for intelligent text splittingWriter.chat.chat
method, but it will if you are importing specific types directly. See below for more details about changes in each SDK.Old | New |
---|---|
chat_chat_params.Tool | types.shared_params.tool_param.ToolParam |
types.Chat | types.chat_completion.ChatCompletion |
types.chat.ChoiceMessageGraphDataSource | types.shared.source.Source |
types.chat.ChoiceMessageGraphDataSubquerySource | types.shared.source.Source |
types.chat_completion_chunk.ChoiceDeltaGraphData | types.shared.graph_data.GraphData |
types.chat_completion_chunk.Usage | types.chat_completion_usage |
types.chat_completion_chunk.ChoiceMessageToolCall | types.shared.tool_call_streaming.ToolCallStreaming |
types.question.Source | types.shared.source.Source |
types.question.SubquerySource | types.shared.source.Source |
types.chat_completion_chunk.Message
type has been moved to its own model: types.chat_completion_message
.
types.chat.ChoiceLogprobsContent
, ChoiceLogprobsRefusal
, ChoiceLogprobsContentTopLogprob
, and ChoiceLogprobsRefusalTopLogprob
have all been deduplicated and replaced by a shared model types.shared.logprobs_token.LogprobsToken
.
Old | New |
---|---|
ChatResource | Chat |
Chat | ChatCompletion |
Chat.Choice | ChatCompletionChoice |
Chat.Choice.Message | ChatCompletionMessage |
Chat.Choice.Logprobs | Shared.Logprobs |
Chat.Choice.Logprobs.Content | Shared.LogprobsToken |
Chat.Choice.Logprobs.Refusal | Shared.LogprobsToken |
Chat.Usage | ChatCompletionUsage |
ChatCompletionChunk.Choice.Message | ChatCompletionMessage |
ChatCompletionChunk.Choice.Delta | ChatCompletionChunk.Choice.Delta |
ChatCompletionChunk.Choice.Delta.GraphData | Shared.GraphData |
ChatCompletionChunk.Choice.Delta.ToolCall | Shared.ToolCallStreaming |
ChatCompletionChunk.Choice.Logprobs | Shared.Logprobs |
ChatCompletionChunk.Usage | ChatCompletionUsage |
ChatChatParams.Message.GraphData | Shared.GraphData |
ChatChatParams.Message.ToolCall | Shared.ToolCall |
ChatChatParams.StringToolChoice | Shared.ToolChoiceString |
ChatChatParams.JsonObjectToolChoice | Shared.ToolChoiceJsonObject |
ChatChatParams.FunctionTool | Shared.ToolParam.FunctionTool |
ChatChatParams.GraphTool | Shared.ToolParam.GraphTool |
StreamingData | CompletionChunk |
Completion.Choice.LogProbs | Shared.Logprobs |
fetch
API, resulting in zero SDK dependencies.content
field in the File
did not accept the correct FileTypes
values.httpx
0.28.0 releasetransport
, proxies
) to maintain backward compatibilitymodel_dump
method when warnings are passedcached-property
dependency, as we now rely on the standard library implementation for Python 3.8+mypy
checks to avoid false positives