Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support forceHydration on PromptString #5884

Merged
merged 1 commit into from
Oct 12, 2024
Merged

support forceHydration on PromptString #5884

merged 1 commit into from
Oct 12, 2024

Conversation

sqs
Copy link
Member

@sqs sqs commented Oct 12, 2024

PromptString instances can't be cloned because their reference value is used as the key in the WeakMap that implements immutability and encapsulation for PromptString.

(This broke something on a separate branch, so I extracted the fix and test case to merge separately here.)

Test plan

Added test case

PromptString instances can't be cloned because their reference value is used as the key in the WeakMap that implements immutability and encapsulation for PromptString.
@sqs sqs requested review from dominiccooney and a team October 12, 2024 18:19
@sqs sqs merged commit 44a2293 into main Oct 12, 2024
19 of 20 checks passed
@sqs sqs deleted the sqs/hydrate-ps branch October 12, 2024 20:17
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