Skip to content

Conversation

@NikhilSinha1
Copy link
Contributor

@NikhilSinha1 NikhilSinha1 commented Dec 19, 2025

Summary

We have a need in certain situations to have the model code be able to access the prediction ID. We are doing this by shoving it into the context, which in turn gets shoved into the scope, which the model code should be able to call using cog.current_scope()["id"]

Signed-off-by: Nikhil Sinha <nikhil@replicate.com>
Copy link

@meatballhat-cf meatballhat-cf left a comment

Choose a reason for hiding this comment

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

Yep! Need that.

@NikhilSinha1 NikhilSinha1 merged commit e3c842d into main Dec 19, 2025
54 of 55 checks passed
@NikhilSinha1 NikhilSinha1 deleted the nikhil/expose-prediction-id branch December 19, 2025 20:27
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.

4 participants