Skip to content

fix (provider): remove obsolete .rawCall from doStream() and doGenerate() results (now there is request)#5774

Closed
gr2m wants to merge 2 commits intov5from
v5-5765-remove-rawCall-from-provider
Closed

fix (provider): remove obsolete .rawCall from doStream() and doGenerate() results (now there is request)#5774
gr2m wants to merge 2 commits intov5from
v5-5765-remove-rawCall-from-provider

Conversation

@gr2m
Copy link
Copy Markdown
Collaborator

@gr2m gr2m commented Apr 15, 2025

Background

Towards #5765

Summary

Obsolete .rawCall from doStream() and doGenerate() results has been removed. Use .request instead.

Tasks

  • n/a Tests for the changes have been added (for bug fixes / features)
  • n/a Docs have been added / updated (for bug fixes / features)
  • If required, a patch changeset for relevant packages has been added
  • You've run pnpm prettier-fix to fix any formatting issues

@gr2m gr2m changed the base branch from main to v5 April 15, 2025 02:04
/**
Raw prompt and setting information for observability provider integration.
*/
// TODO v2: remove in v2 (now there is request)
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume that "request" is referring to the .request key:

/**
Optional request information for telemetry and debugging purposes.
*/
request?: {
/**
Raw request HTTP body that was sent to the provider API as a string (JSON should be stringified).
Non-HTTP(s) providers should not set this.
*/
body?: string;
};

But that key is marked as optional, while .rawCall seems to have always been present.

Maybe the .request key should not be optional?

@gr2m gr2m mentioned this pull request Apr 15, 2025
8 tasks
Copy link
Copy Markdown
Collaborator

@lgrammel lgrammel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do not change LanguageModelV1 - it is left for reference and will be fully removed before the V5 release. This has been fixed in LangaugeModelV2

@lgrammel lgrammel closed this Apr 15, 2025
@lgrammel lgrammel deleted the v5-5765-remove-rawCall-from-provider branch July 2, 2025 10:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants