Skip to content

Commit acd0ada

Browse files
committed
refactor: model nick_name
1 parent 3af2dc7 commit acd0ada

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

apps/models_provider/serializers/model_serializer.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ def model_to_dict(model: Model):
100100
'credential': ModelProvideConstants[model.provider].value.get_model_credential(
101101
model.model_type, model.model_name
102102
).encryption_dict(credential),
103-
'workspace_id': model.workspace_id
103+
'workspace_id': model.workspace_id,
104+
'username': model.user.nick_name
104105
}
105106

106107
class Operate(serializers.Serializer):

0 commit comments

Comments
 (0)