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

build error on web api #37

Closed
manipuraco opened this issue Jun 22, 2023 · 2 comments
Closed

build error on web api #37

manipuraco opened this issue Jun 22, 2023 · 2 comments

Comments

@manipuraco
Copy link

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)

@AsakusaRinne
Copy link
Collaborator

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?

@martindevans
Copy link
Collaborator

Was this resolved by #39?

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

No branches or pull requests

3 participants