Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set runtime options for Terminating session #1011

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

ajindal1
Copy link
Contributor

Add API option for setting any runtime options. Particularly, add Terminate session option for the user, the session remains in the terminated state until the user disables terminate_session.

To terminate session:
SetRuntimeOptionsConfig("terminate_session", "1")

To unset:
SetRuntimeOptionsConfig("terminate_session", "0")

src/generators.cpp Show resolved Hide resolved
src/generators.cpp Outdated Show resolved Hide resolved
src/models/model.h Outdated Show resolved Hide resolved
}
}
catch (const std::exception& e) {
std::cout << "Session Terminated: " << e.what() << std::endl;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we detect session termination vs another error here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants