2.1 KiB
2.1 KiB
ChatSession<T>
Namespace: LLama.OldVersion
Caution
The entire LLama.OldVersion namespace will be removed
public class ChatSession<T>
Type Parameters
T
Inheritance Object → ChatSession<T>
Constructors
ChatSession(T)
public ChatSession(T model)
Parameters
model
T
Methods
Chat(String, String, String)
public IEnumerable<string> Chat(string text, string prompt, string encoding)
Parameters
text
String
prompt
String
encoding
String
Returns
WithPrompt(String, String)
public ChatSession<T> WithPrompt(string prompt, string encoding)
Parameters
prompt
String
encoding
String
Returns
WithPromptFile(String, String)
public ChatSession<T> WithPromptFile(string promptFilename, string encoding)
Parameters
promptFilename
String
encoding
String
Returns
WithAntiprompt(String[])
Set the keywords to split the return value of chat AI.
public ChatSession<T> WithAntiprompt(String[] antiprompt)
Parameters
antiprompt
String[]