Skip to content

Commit f709d6d

Browse files
foo
1 parent b018763 commit f709d6d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/openai/client.go

+4
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ func (c *Client) ValidAuth() error {
138138
}
139139

140140
func (c *Client) Supports(ctx context.Context, modelName string) (bool, error) {
141+
if c.setSeed && c.defaultModel != "" && c.defaultModel == modelName {
142+
return true, nil
143+
}
144+
141145
models, err := c.ListModels(ctx)
142146
if err != nil {
143147
return false, err

0 commit comments

Comments
 (0)