Skip to content

Commit

Permalink
fix(finetune): use the old restart for finetune sessions
Browse files Browse the repository at this point in the history
  • Loading branch information
philwinder committed Aug 28, 2024
1 parent c1ec717 commit 6f74039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/pkg/server/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -648,7 +648,7 @@ func (apiServer *HelixAPIServer) restartSession(res http.ResponseWriter, req *ht
return nil, err
}
// If it is a text inference session, then restart using the "new" openai controllers
if session.Type == types.SessionTypeText && session.Mode == types.SessionModeInference {
if session.Metadata.OriginalMode != types.SessionModeFinetune && session.Type == types.SessionTypeText && session.Mode == types.SessionModeInference {
apiServer.restartChatSessionHandler(res, req)
return session, nil
}
Expand Down

0 comments on commit 6f74039

Please sign in to comment.