replicate/replicate-javascript

Possible to get access to prompts and answers from other users

Alkons opened this issue · 3 comments

Alkons commented

Following code returns logs in the response with previous runs from other users:

const client = new Replicate({
        auth: token
      });
const modelData = await client.models.get(modelOwner, modelName);
console.log(modelData);

Response:
image_2024-05-13_18-22-07

aron commented

Hi @Alkons that's the default_example. Each model provides a set of example prompts so users can see how they work. We include the first of these in the model metadata (docs).

https://replicate.com/mistralai/mistral-7b-instruct-v0.2/examples

Alkons commented

Hi @Alkons that's the default_example. Each model provides a set of example prompts so users can see how they work. We include the first of these in the model metadata (docs).

https://replicate.com/mistralai/mistral-7b-instruct-v0.2/examples

Maybe it makes sense to rename logs to the examples just to avoid such confusion.

aron commented

Thanks for the feedback! I'll share it with the team.