mirror of
https://github.com/dogkeeper886/ollama37.git
synced 2025-12-10 15:57:04 +00:00
fix formatting when exiting ollama run
This commit is contained in:
@@ -561,6 +561,7 @@ func generateInteractive(cmd *cobra.Command, model string) error {
|
||||
line, err := scanner.Readline()
|
||||
switch {
|
||||
case errors.Is(err, io.EOF):
|
||||
fmt.Println()
|
||||
return nil
|
||||
case errors.Is(err, readline.ErrInterrupt):
|
||||
if line == "" {
|
||||
|
||||
Reference in New Issue
Block a user