@@ -661,7 +661,7 @@ class ChatCompletionRequest(OpenAIBaseModel):
661661 ),
662662 )
663663 request_id : str = Field (
664- default_factory = lambda : f" { random_uuid () } " ,
664+ default_factory = random_uuid ,
665665 description = (
666666 "The request_id related to this request. If the caller does "
667667 "not set it, a random_uuid will be generated. This id is used "
@@ -1078,7 +1078,7 @@ class CompletionRequest(OpenAIBaseModel):
10781078 ),
10791079 )
10801080 request_id : str = Field (
1081- default_factory = lambda : f" { random_uuid () } " ,
1081+ default_factory = random_uuid ,
10821082 description = (
10831083 "The request_id related to this request. If the caller does "
10841084 "not set it, a random_uuid will be generated. This id is used "
@@ -1375,7 +1375,7 @@ class EmbeddingCompletionRequest(OpenAIBaseModel):
13751375 ),
13761376 )
13771377 request_id : str = Field (
1378- default_factory = lambda : f" { random_uuid () } " ,
1378+ default_factory = random_uuid ,
13791379 description = (
13801380 "The request_id related to this request. If the caller does "
13811381 "not set it, a random_uuid will be generated. This id is used "
@@ -1470,7 +1470,7 @@ class EmbeddingChatRequest(OpenAIBaseModel):
14701470 ),
14711471 )
14721472 request_id : str = Field (
1473- default_factory = lambda : f" { random_uuid () } " ,
1473+ default_factory = random_uuid ,
14741474 description = (
14751475 "The request_id related to this request. If the caller does "
14761476 "not set it, a random_uuid will be generated. This id is used "
@@ -1892,7 +1892,7 @@ class ClassificationCompletionRequest(OpenAIBaseModel):
18921892 ),
18931893 )
18941894 request_id : str = Field (
1895- default_factory = lambda : f" { random_uuid () } " ,
1895+ default_factory = random_uuid ,
18961896 description = (
18971897 "The request_id related to this request. If the caller does "
18981898 "not set it, a random_uuid will be generated. This id is used "
@@ -1983,7 +1983,7 @@ class ClassificationChatRequest(OpenAIBaseModel):
19831983 )
19841984
19851985 request_id : str = Field (
1986- default_factory = lambda : f" { random_uuid () } " ,
1986+ default_factory = random_uuid ,
19871987 description = (
19881988 "The request_id related to this request. If the caller does "
19891989 "not set it, a random_uuid will be generated. This id is used "
@@ -3094,7 +3094,7 @@ class TranslationResponseVerbose(OpenAIBaseModel):
30943094####### Tokens IN <> Tokens OUT #######
30953095class GenerateRequest (BaseModel ):
30963096 request_id : str = Field (
3097- default_factory = lambda : f" { random_uuid () } " ,
3097+ default_factory = random_uuid ,
30983098 description = (
30993099 "The request_id related to this request. If the caller does "
31003100 "not set it, a random_uuid will be generated. This id is used "
@@ -3151,7 +3151,7 @@ class GenerateResponseChoice(BaseModel):
31513151
31523152class GenerateResponse (BaseModel ):
31533153 request_id : str = Field (
3154- default_factory = lambda : f" { random_uuid () } " ,
3154+ default_factory = random_uuid ,
31553155 description = (
31563156 "The request_id related to this request. If the caller does "
31573157 "not set it, a random_uuid will be generated. This id is used "
0 commit comments