Skip to content

Commit

Permalink
fix error by replacing PrivateAttr with Field
Browse files Browse the repository at this point in the history
  • Loading branch information
davidberenstein1957 committed Dec 24, 2024
1 parent 6d88a04 commit f88ded9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/distilabel/steps/tasks/ultrafeedback.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

import orjson
from jinja2 import Template
from pydantic import PrivateAttr
from pydantic import Field, PrivateAttr
from typing_extensions import override

from distilabel.steps.tasks.base import Task
Expand Down Expand Up @@ -200,7 +200,7 @@ class UltraFeedback(Task):
"overall-rating",
] = "overall-rating"

system_prompt: str = PrivateAttr(
system_prompt: str = Field(
default=(
"Your role is to evaluate text quality based on given criteria.\n"
'You\'ll receive an instructional description ("Instruction") and {no_texts} text outputs ("Text").\n'
Expand Down

0 comments on commit f88ded9

Please sign in to comment.