Skip to content
Discussion options

You must be logged in to vote

The chat endpoint is meant for a context based interaction, whereas the completions endpoint 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.

return isChatEndpoint
? await TranslateWithChatApi(text, cancellationToken)
: await TranslateWithGenerateApi(text, cancellationToken);

Context based interaction isn't implemented in Lingarr, but do you receive an error with the chat method?

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@wizziLalev
Comment options

@rowanfuchs
Comment options

Answer selected by wizziLalev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants