@ai-sdk/anthropic 2.1.0-beta.5 → 2.1.0-beta.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -980,7 +980,7 @@ function createCitationSource(citation, citationDocuments, generateId2) {
980
980
  }
981
981
  var AnthropicMessagesLanguageModel = class {
982
982
  constructor(modelId, config) {
983
- this.specificationVersion = "v2";
983
+ this.specificationVersion = "v3";
984
984
  var _a;
985
985
  this.modelId = modelId;
986
986
  this.config = config;
@@ -1865,7 +1865,7 @@ var anthropicMessagesResponseSchema = z7.object({
1865
1865
  retrieved_at: z7.string(),
1866
1866
  content: z7.object({
1867
1867
  type: z7.literal("document"),
1868
- title: z7.string(),
1868
+ title: z7.string().nullable(),
1869
1869
  citations: z7.object({ enabled: z7.boolean() }).optional(),
1870
1870
  source: z7.object({
1871
1871
  type: z7.literal("text"),
@@ -1975,7 +1975,7 @@ var anthropicMessagesChunkSchema = z7.discriminatedUnion("type", [
1975
1975
  retrieved_at: z7.string(),
1976
1976
  content: z7.object({
1977
1977
  type: z7.literal("document"),
1978
- title: z7.string(),
1978
+ title: z7.string().nullable(),
1979
1979
  citations: z7.object({ enabled: z7.boolean() }).optional(),
1980
1980
  source: z7.object({
1981
1981
  type: z7.literal("text"),