mirror of
https://github.com/BerriAI/litellm.git
synced 2026-08-28 05:25:59 +00:00
* feat: add input_fidelity parameter for OpenAI image generation - Add input_fidelity to OpenAIImageGenerationOptionalParams type - Update image_generation function signature to accept input_fidelity - Add input_fidelity to default_params in get_optional_params_image_gen - Include input_fidelity in openai_params list for proper handling - Update documentation with input_fidelity parameter description - Add test for input_fidelity parameter functionality This enables control over how closely the model follows the input prompt for gpt-image-1 model, improving prompt adherence and image quality. * feat: add input_fidelity to optional parameters for image generation - Include input_fidelity in the list of OpenAIImageGenerationOptionalParams - This addition enhances the flexibility of image generation by allowing control over input fidelity. * test: enhance test for gpt-image-1 with input_fidelity parameter - Update test_gpt_image_1_with_input_fidelity to include mocking of OpenAI response - Validate that the OpenAI client is called with correct parameters, including input_fidelity - Improve response validation to ensure expected output structure and values |
||
|---|---|---|
| .. | ||
| my-website | ||