You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor: Refactor endpoint and model compatibility check (#180)
* Add model check for chat stream
* Sync model checks
* Fix typo
* Fix functino
* refactor: Refactor endpoint and model compatibility check
* apply review suggestions
* minor fix
* invert return boolean flag
* fix test
Copy file name to clipboardExpand all lines: chat.go
+4-6Lines changed: 4 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -14,8 +14,8 @@ const (
14
14
)
15
15
16
16
var (
17
-
ErrChatCompletionInvalidModel=errors.New("currently, only gpt-3.5-turbo and gpt-3.5-turbo-0301 are supported") //nolint:lll
18
-
ErrChatCompletionStreamNotSupported=errors.New("streaming is not supported with this method, please use CreateChatCompletionStream") //nolint:lll
17
+
ErrChatCompletionInvalidModel=errors.New("this model is not supported with this method, please use CreateCompletion client method instead")//nolint:lll
18
+
ErrChatCompletionStreamNotSupported=errors.New("streaming is not supported with this method, please use CreateChatCompletionStream") //nolint:lll
0 commit comments