allow message content to be empty
This commit is contained in:
		
							parent
							
								
									fe0860dbf0
								
							
						
					
					
						commit
						c8025f1cff
					
				@ -25,7 +25,7 @@ class Role(Enum):
 | 
			
		||||
 | 
			
		||||
class Message(BaseModel):
 | 
			
		||||
    role: Role
 | 
			
		||||
    content: str = Field(min_length=1)
 | 
			
		||||
    content: str = Field(min_length=0)
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
class ChatCompletionBody(ModelConfigBody):
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user