mirror of
https://github.com/danielmiessler/Fabric.git
synced 2026-02-13 07:25:10 -05:00
feat: add image generation support with OpenAI image generation model
## CHANGES - Add `--image-file` flag for saving generated images - Implement image generation tool integration with OpenAI - Support image editing with attachment input files - Add comprehensive test coverage for image features - Update documentation with image generation examples - Fix HTML formatting issues in README - Improve PowerShell code block indentation - Clean up help text formatting and spacing
This commit is contained in:
@@ -76,6 +76,7 @@ type Flags struct {
|
||||
ShellCompleteOutput bool `long:"shell-complete-list" description:"Output raw list without headers/formatting (for shell completion)"`
|
||||
Search bool `long:"search" description:"Enable web search tool for supported models (Anthropic, OpenAI)"`
|
||||
SearchLocation string `long:"search-location" description:"Set location for web search results (e.g., 'America/Los_Angeles')"`
|
||||
ImageFile string `long:"image-file" description:"Save generated image to specified file path (e.g., 'output.png')"`
|
||||
}
|
||||
|
||||
var debug = false
|
||||
@@ -267,6 +268,7 @@ func (o *Flags) BuildChatOptions() (ret *common.ChatOptions) {
|
||||
ModelContextLength: o.ModelContextLength,
|
||||
Search: o.Search,
|
||||
SearchLocation: o.SearchLocation,
|
||||
ImageFile: o.ImageFile,
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user