Skip to content

Suppress output that isn't from the model #5

Closed

Description

@MLTQ

I want to integrate this into a slim chat system, so I think it would be nice to be able to have the app output only the text from the model like a -q for "quiet" flag on run.

Activity

  1. tinoargentino commented on Mar 12, 2023

    @tinoargentino

    for testing purposes, you can just comment out all printfs in main.cpp, run make again, and run ./main

  2. prusnak commented on Mar 12, 2023

    @prusnak
    Contributor

    Another option is just using fprintf(stderr, ...) everywhere except in that one particular case that prints tokens from the model. According to POSIX standard, stderr is not limited for errors, but can be used to print diagnostic output too.

    One can use ./main ... 2>dev/null to suppress any diagnostic output

    PR #48 does exactly this.

  3. added a commit that references this issue on Mar 17, 2023
  4. added a commit that references this issue on May 31, 2023
  5. added a commit that references this issue on Aug 2, 2023
  6. added a commit that references this issue on Aug 25, 2023
  7. added a commit that references this issue on Jan 27, 2024
  8. 121 remaining items

  9. added a commit that references this issue on Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions