LocalAI Chat endpoint structure #96
-
|
Hello, Here you are looking for Will be great to get your thoughts on that topic and maybe you can update the implementation - sorry my C# is not so strong to provide the PR with needed change :) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
|
The lingarr/Lingarr.Server/Services/Translation/LocalAiService.cs Lines 111 to 113 in e47e573 Context based interaction isn't implemented in Lingarr, but do you receive an error with the chat method? |
Beta Was this translation helpful? Give feedback.
The
chatendpoint is meant for a context based interaction, whereas thecompletionsendpoint is for single interactions. The line you mention is to determine whether the user has provided the chat or completion endpoint. Here, you see the chosen method based on that condition.lingarr/Lingarr.Server/Services/Translation/LocalAiService.cs
Lines 111 to 113 in e47e573
Context based interaction isn't implemented in Lingarr, but do you receive an error with the chat method?