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

Add chat example in C# #1257

Closed
wants to merge 1 commit into from
Closed

Add chat example in C# #1257

wants to merge 1 commit into from

Conversation

natke
Copy link
Contributor

@natke natke commented Feb 15, 2025

No description provided.

Console.WriteLine("Next prompt:");
prompt = Console.ReadLine();
sequences = tokenizer.Encode($"<|user|>{prompt}<|end|><|assistant|>");
} while (prompt != null);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Could we avoid writing a while loop within another while loop? To get out of the while loop, we need to exit both the while loops. And it seems like the purpose for both the while loops is the same.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Actually the outer while loop is a new conversation

@natke
Copy link
Contributor Author

natke commented Feb 20, 2025

Superseded by #1266

@ajindal1 ajindal1 closed this Feb 21, 2025
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