mirror of
				https://github.com/ggml-org/llama.cpp.git
				synced 2025-10-31 08:51:55 +00:00 
			
		
		
		
	server : allow content to be null in oaicompat_completion_params_parse (#13477)
This commit is contained in:
		| @@ -644,7 +644,7 @@ static json oaicompat_completion_params_parse( | |||||||
|     } |     } | ||||||
|     for (auto & msg : messages) { |     for (auto & msg : messages) { | ||||||
|         json & content = msg.at("content"); |         json & content = msg.at("content"); | ||||||
|         if (content.is_string()) { |         if (content.is_string() || content.is_null()) { | ||||||
|             continue; |             continue; | ||||||
|         } |         } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Anudit Nagar
					Anudit Nagar