File tree Expand file tree Collapse file tree 3 files changed +10
-6
lines changed
Expand file tree Collapse file tree 3 files changed +10
-6
lines changed Original file line number Diff line number Diff line change 1313# See the License for the specific language governing permissions and
1414# limitations under the License.
1515from enum import Enum
16+ from token import OP
1617from typing import Any , Dict , List , Optional
1718
1819from pydantic import BaseModel , Field
@@ -647,9 +648,13 @@ class EvaReportRuleTarget(BaseModel):
647648 TargetDetail : EvaReportTargetDetail = Field (
648649 title = "Target Details" , description = "Target details"
649650 )
650- AvgScore : float = Field (title = "Average Score" , description = "Average score" )
651- Percent : float = Field (title = "Percentage" , description = "Percentage" )
652- ScoreMap : Dict [str , Any ] = Field (title = "Score Map" , description = "Score mapping" )
651+ AvgScore : Optional [float ] = Field (
652+ title = "Average Score" , description = "Average score"
653+ )
654+ Percent : Optional [float ] = Field (title = "Percentage" , description = "Percentage" )
655+ ScoreMap : Optional [Dict [str , Any ]] = Field (
656+ title = "Score Map" , description = "Score mapping"
657+ )
653658 Duration : int = Field (title = "Duration" , description = "Duration in milliseconds" )
654659 CostTokens : int = Field (
655660 title = "Cost Tokens" , description = "Number of tokens consumed"
Original file line number Diff line number Diff line change 4949)
5050from .hiagent_eva .client import Client
5151
52- __version__ = "1.0 .0"
52+ __version__ = "2.1 .0"
5353
5454__all__ = [
5555 "Client" ,
Original file line number Diff line number Diff line change 3232from hiagent_eva import client
3333
3434# Configure logging
35- logging .basicConfig (level = logging .DEBUG )
35+ logging .basicConfig (level = logging .INFO )
3636logger = logging .getLogger (__name__ )
3737
3838load_dotenv ()
@@ -44,7 +44,6 @@ def my_inference_function(
4444 results = []
4545 message_list = []
4646 for case in case_data_list :
47- logger .info (f"case={ case } " )
4847 input = case ["input" ].CellContent [0 ].Text
4948 message_list .append ({"role" : "user" , "content" : input })
5049 content = f"message list={ json .dumps (message_list , ensure_ascii = False )} "
You can’t perform that action at this time.
0 commit comments