Skip to content

Commit 6709875

Browse files
foo
1 parent f709d6d commit 6709875

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/openai/client.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ 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 {
141+
if c.setSeed && c.defaultModel != "" && c.defaultModel == modelName && c.ValidAuth() == nil {
142142
return true, nil
143143
}
144144

0 commit comments

Comments
 (0)