You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi
I just took latest code from main branch and getting this build error. Can anyone advice. Thanks in advance
Severity Code Description Project File Line Suppression State
Error CS0311 The type 'LLama.LLamaModel' cannot be used as type parameter 'T' in the generic type or method 'ChatSession'. There is no implicit reference conversion from 'LLama.LLamaModel' to 'LLama.OldVersion.IChatModel'. LLama.WebAPI C:\Users\conta\source\repos\LLamaSharp\LLama.WebAPI\Services\ChatService.cs 8 Active
This is the code impacted
LLamaModel model = new(new LLamaParams(model: @"ggml-model-q4_0.bin", n_ctx: 512, interactive: true, repeat_penalty: 1.0f, verbose_prompt: false));
_session = new ChatSession<LLamaModel>(model)
The text was updated successfully, but these errors were encountered:
Hi, that's because v0.4.0 introduced break changes. I haven't been free to upgrade the web api project yet. Could you please have an another try with lower version?
Hi
I just took latest code from main branch and getting this build error. Can anyone advice. Thanks in advance
Severity Code Description Project File Line Suppression State
Error CS0311 The type 'LLama.LLamaModel' cannot be used as type parameter 'T' in the generic type or method 'ChatSession'. There is no implicit reference conversion from 'LLama.LLamaModel' to 'LLama.OldVersion.IChatModel'. LLama.WebAPI C:\Users\conta\source\repos\LLamaSharp\LLama.WebAPI\Services\ChatService.cs 8 Active
This is the code impacted
The text was updated successfully, but these errors were encountered: