mirror of
https://github.com/coaidev/coai.git
synced 2025-05-20 21:40:15 +09:00
fix: fix import cycle error
This commit is contained in:
parent
59e822264b
commit
0c44eed4ec
@ -1,7 +1,6 @@
|
|||||||
package globals
|
package globals
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"chat/utils"
|
|
||||||
"github.com/gin-gonic/gin"
|
"github.com/gin-gonic/gin"
|
||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
@ -121,8 +120,6 @@ func IsDalleModel(model string) bool {
|
|||||||
|
|
||||||
func IsGPT41106VisionPreview(model string) bool {
|
func IsGPT41106VisionPreview(model string) bool {
|
||||||
// enable openai image format for gpt-4-vision-preview model
|
// enable openai image format for gpt-4-vision-preview model
|
||||||
return utils.Any(
|
return (model == GPT41106VisionPreview || strings.Contains(model, GPT41106VisionPreview)) ||
|
||||||
model == GPT41106VisionPreview || strings.Contains(model, GPT41106VisionPreview),
|
(model == GPT4VisionPreview || strings.Contains(model, GPT4VisionPreview))
|
||||||
model == GPT4VisionPreview || strings.Contains(model, GPT4VisionPreview),
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user