quarkus-langchain4j icon indicating copy to clipboard operation
quarkus-langchain4j copied to clipboard

change the success message as some opensource models like empower-fun…

Open MoheyEl-DinBadr opened this issue 1 year ago • 5 comments

change the success message as some opensource models like empower-functions-medium (can be tested with baseUrl: https://app.empower.dev/api/v1/functions/) accepts Tool Message as Json only

MoheyEl-DinBadr avatar May 22 '24 23:05 MoheyEl-DinBadr

Hi,

Thanks for the contribution, but I can't say I really understand this change

geoand avatar May 23 '24 06:05 geoand

Hi,

Thanks for the contribution, but I can't say I really understand this change

There is an exception happening when you try open-source LLMs like empower you get the following exception

log.txt

you could check it out by having this configurations no api-key needed

quarkus.langchain4j.openai.chat-model.model-name=empower-functions-medium quarkus.langchain4j.openai.base-url=https://app.empower.dev/api/v1/functions/

MoheyEl-DinBadr avatar May 25 '24 13:05 MoheyEl-DinBadr

I will check soon, thanks

geoand avatar May 28 '24 07:05 geoand

@langchain4j does this seems correct to you?

geoand avatar May 31 '24 05:05 geoand

A bit strange (regarding JSON strictness), but if there is such a requirement, what can we do...

langchain4j avatar May 31 '24 05:05 langchain4j