llama: remove unused helper functions

This commit is contained in:
Jeffrey Morgan
2023-07-09 10:25:07 -04:00
parent b43ddd84be
commit 5fb96255dc
2 changed files with 1 additions and 280 deletions

View File

@@ -60,9 +60,7 @@ func (l *LLama) Free() {
C.llama_binding_free_model(l.ctx)
}
func (l *LLama) Eval(text string, opts ...PredictOption) error {
po := NewPredictOptions(opts...)
func (l *LLama) Eval(text string, po PredictOptions) error {
input := C.CString(text)
if po.Tokens == 0 {
po.Tokens = 99999999