Skip to content

添加在命令行发送请求时自定义url和评估类的功能#1

Open
zzycode1005 wants to merge 1 commit into
Wwwzff:mainfrom
zzycode1005:main
Open

添加在命令行发送请求时自定义url和评估类的功能#1
zzycode1005 wants to merge 1 commit into
Wwwzff:mainfrom
zzycode1005:main

Conversation

@zzycode1005
Copy link
Copy Markdown

修改方案:采用oaieval方式拉起服务时,增加自定义url,及自定义评估类的功能
验证日志:
Uploading eval蓝区验证结果.jpg…

completions = []
if self.raw_data:
for choice in self.raw_data.get("choices", []):
if choice.get("message", {}).get("content", '') is not None:
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Repeated calls to .get("message", {}) can be extracted into a local variable.

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