Compare commits

..

3 Commits

Author SHA1 Message Date
github-actions[bot]
d8cc9b5eef Update version to v1.4.218 and commit 2025-06-27 00:22:16 +00:00
Kayvan Sylvan
9dbe20cf7b Merge pull request #1550 from ksylvan/0626-more-openai-raw-mode
Add Support for OpenAI Search and Research Model Variants
2025-06-26 17:20:47 -07:00
Kayvan Sylvan
64763e1303 feat: add support for new OpenAI search and research model variants
## CHANGES

- Add slices import for array operations
- Define new search preview model names
- Add mini search preview variants
- Include deep research model support
- Add June 2025 dated model versions
- Replace hardcoded check with slices.Contains
- Support both prefix and exact model matching
2025-06-26 17:06:25 -07:00
3 changed files with 12 additions and 3 deletions

View File

@@ -1 +1 @@
"1.4.217"
"1.4.218"

View File

@@ -6,6 +6,7 @@ import (
"fmt"
"io"
"log/slog"
"slices"
"strings"
"github.com/danielmiessler/fabric/common"
@@ -129,12 +130,20 @@ func (o *Client) NeedsRawMode(modelName string) bool {
"o3",
"o4",
}
openAIModelsNeedingRaw := []string{
"gpt-4o-mini-search-preview",
"gpt-4o-mini-search-preview-2025-03-11",
"gpt-4o-search-preview",
"gpt-4o-search-preview-2025-03-11",
"o4-mini-deep-research",
"o4-mini-deep-research-2025-06-26",
}
for _, prefix := range openaiModelsPrefixes {
if strings.HasPrefix(modelName, prefix) {
return true
}
}
return false
return slices.Contains(openAIModelsNeedingRaw, modelName)
}
func (o *Client) buildChatCompletionRequest(

View File

@@ -1,3 +1,3 @@
package main
var version = "v1.4.217"
var version = "v1.4.218"