0.1.0
(November 12th, 2024)createPromptVariant
API to create Prompt
variantscreateExperiment
to take as input a promptVariantId
instead of a promptId
0.1.0
, you need to have Literal AI version 0.1.0-beta or above to create experiments.0.0.520
(October 28th, 2024)label
, status
and tags
to getPromptById
API.0.0.520
, you need to have Literal AI version 0.0.629-beta or above.0.0.519
(October 21st, 2024)release
parameter to Literal AI client constructors0.0.518
(September 18th, 2024)0.0.517
(September 16th, 2024)get_prompt
APImetadata
, tags
and stepid
fieldsmetadata
and tags
logging0.0.515
0.0.514
threadId
and parentId
are now automatically handled without the need to pass them as a literalAiParent
argument.
0.0.513
Step
update_prompt_ab_testing
replaces the old promote_prompt
and extends on it to allow for A/B testing0.0.513
, you need to have Literal AI version 0.0.617-beta
or above.0.0.512
client.api.createAttachment
. This method is a wrapper around the uploadFile
method and the new Attachment
constructor. It allows you to create an attachment in a single call, and attach it to the thread/step in the current context.
The old method using uploadFile
and new Attachment
is considered obsolete, although it remains in the SDK for backward compatibility.
threadId
is now optional when creating an attachment or uploading a filecreateAttachment
and uploadFile
now accept file data in the following formats : ReadableStream, ReadStream, Buffer, File, Blob & ArrayBufferGeneration
creation now supports passing tags
and metadata
Experiment
become optionally linked to a Dataset
0.0.512
, you need to have Literal AI version 0.0.615-beta or above.0.0.510
instrumentation.openai
method in your code and upgrade the Literal AI SDK to 0.0.510
, you will get the following error at compile time : error TS2554: Expected 0-1 arguments, but got 2.
.To fix this, you should move the instrumentation.openai
call to the top of your code and remove the arguments apart from the optional { tags: []}
argument.You can find code examples in the OpenAI Instrumentation guide.0.0.509
step
and thread
methods.0.0.504
format
is deprecated. formatMessages
should be used now.0.0.503
createPrompt()
is deprecated. getOrCreatePrompt()
should now be used.getOrCreatePrompt()
. For creating a new Prompt, use getOrCreatePrompt()
.