-
Notifications
You must be signed in to change notification settings - Fork 195
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgarde quarkus-langchain4j to 0.16.4
Fixes #6278
- Loading branch information
1 parent
e5f5d44
commit 803e966
Showing
9 changed files
with
32 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
integration-tests/langchain4j-chat/src/test/resources/mappings/multipleMessages.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
{ | ||
"id" : "5720afb6-10d1-4038-8f8f-f08d89180b14", | ||
"id" : "dd4c47e5-d189-437f-b4fb-cdb3007d6271", | ||
"name" : "api_chat", | ||
"request" : { | ||
"url" : "/api/chat", | ||
"method" : "POST", | ||
"bodyPatterns" : [ { | ||
"equalToJson" : "{\"model\":\"orca-mini\",\"messages\":[{\"role\":\"SYSTEM\",\"content\":\"You are asked to provide recommendations for a restaurant based on user reviews.\"},{\"role\":\"USER\",\"content\":\"Hello, my name is Karen.\"},{\"role\":\"ASSISTANT\",\"content\":\"Hello Karen, how can I help you?\"},{\"role\":\"USER\",\"content\":\"I\\u0027d like you to recommend a restaurant for me.\"},{\"role\":\"ASSISTANT\",\"content\":\"Sure, what type of cuisine are you interested in?\"},{\"role\":\"USER\",\"content\":\"I\\u0027d like Moroccan food.\"},{\"role\":\"ASSISTANT\",\"content\":\"Sure, do you have a preference for the location?\"},{\"role\":\"USER\",\"content\":\"Paris, Rue Montorgueil.\"}],\"options\":{\"temperature\":0.3},\"stream\":false}", | ||
"equalToJson" : "{\n \"model\" : \"orca-mini\",\n \"messages\" : [ {\n \"role\" : \"system\",\n \"content\" : \"You are asked to provide recommendations for a restaurant based on user reviews.\"\n }, {\n \"role\" : \"user\",\n \"content\" : \"Hello, my name is Karen.\"\n }, {\n \"role\" : \"assistant\",\n \"content\" : \"Hello Karen, how can I help you?\"\n }, {\n \"role\" : \"user\",\n \"content\" : \"I'd like you to recommend a restaurant for me.\"\n }, {\n \"role\" : \"assistant\",\n \"content\" : \"Sure, what type of cuisine are you interested in?\"\n }, {\n \"role\" : \"user\",\n \"content\" : \"I'd like Moroccan food.\"\n }, {\n \"role\" : \"assistant\",\n \"content\" : \"Sure, do you have a preference for the location?\"\n }, {\n \"role\" : \"user\",\n \"content\" : \"Paris, Rue Montorgueil.\"\n } ],\n \"options\" : {\n \"temperature\" : 0.3,\n \"top_k\" : 40,\n \"top_p\" : 0.9\n },\n \"stream\" : false\n}", | ||
"ignoreArrayOrder" : true, | ||
"ignoreExtraElements" : true | ||
} ] | ||
}, | ||
"response" : { | ||
"status" : 200, | ||
"body" : "{\"model\":\"orca-mini\",\"created_at\":\"2024-05-02T08:23:51.41574263Z\",\"message\":{\"role\":\"assistant\",\"content\":\" Based on user reviews, I would recommend La Renaissance de la cuisine marocaine. It has received positive ratings for its delicious Moroccan food and friendly service. The restaurant is located at 35 rue Montorgueil, Paris, France. You can check out their menu and reviews on their website or social media pages.\"},\"done\":true,\"total_duration\":6541034901,\"load_duration\":397036,\"prompt_eval_count\":153,\"prompt_eval_duration\":2982821000,\"eval_count\":68,\"eval_duration\":3556417000}", | ||
"body" : "{\"model\":\"orca-mini\",\"created_at\":\"2024-07-22T09:22:54.577581434Z\",\"message\":{\"role\":\"assistant\",\"content\":\" Based on user reviews, I would recommend La Petite Farine. It has received excellent ratings for Moroccan cuisine and has a great atmosphere. Customers rave about the delicious food and the friendly service. Check it out at https://www.restaurant-la-petite-farine.com/\"},\"done\":true,\"total_duration\":3301943840,\"load_duration\":356730,\"prompt_eval_duration\":51587000,\"eval_count\":64,\"eval_duration\":3248817000}", | ||
"headers" : { | ||
"Date" : "Thu, 02 May 2024 08:23:51 GMT", | ||
"Date" : "Mon, 22 Jul 2024 09:22:54 GMT", | ||
"Content-Type" : "application/json; charset=utf-8" | ||
} | ||
}, | ||
"uuid" : "5720afb6-10d1-4038-8f8f-f08d89180b14", | ||
"uuid" : "dd4c47e5-d189-437f-b4fb-cdb3007d6271", | ||
"persistent" : true, | ||
"insertionIndex" : 3 | ||
} |
12 changes: 6 additions & 6 deletions
12
integration-tests/langchain4j-chat/src/test/resources/mappings/promptMessage.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
{ | ||
"id" : "6d1d4506-a77f-46c6-81c5-068ab78b372d", | ||
"id" : "7a17ef92-ee87-4291-a924-40289295573d", | ||
"name" : "api_chat", | ||
"request" : { | ||
"url" : "/api/chat", | ||
"method" : "POST", | ||
"bodyPatterns" : [ { | ||
"equalToJson" : "{\"model\":\"orca-mini\",\"messages\":[{\"role\":\"USER\",\"content\":\"Create a recipe for a oven dish with the following ingredients: potato, tomato, feta, olive oil\"}],\"options\":{\"temperature\":0.3},\"stream\":false}", | ||
"equalToJson" : "{\n \"model\" : \"orca-mini\",\n \"messages\" : [ {\n \"role\" : \"user\",\n \"content\" : \"Create a recipe for a oven dish with the following ingredients: potato, tomato, feta, olive oil\"\n } ],\n \"options\" : {\n \"temperature\" : 0.3,\n \"top_k\" : 40,\n \"top_p\" : 0.9\n },\n \"stream\" : false\n}", | ||
"ignoreArrayOrder" : true, | ||
"ignoreExtraElements" : true | ||
} ] | ||
}, | ||
"response" : { | ||
"status" : 200, | ||
"body" : "{\"model\":\"orca-mini\",\"created_at\":\"2024-05-02T08:22:19.097855836Z\",\"message\":{\"role\":\"assistant\",\"content\":\" Sure, here's a simple recipe for an oven dish with potato, tomato, feta and olive oil:\\n\\nIngredients:\\n- 1 medium-sized potato\\n- 1 medium-sized tomato\\n- 1/2 cup crumbled feta cheese\\n- 2 tablespoons olive oil\\n\\nInstructions:\\n1. Preheat the oven to 375°F (190°C).\\n2. Cut the potato into small cubes and place them in a baking dish.\\n3. Slice the tomato into thin strips and add them to the baking dish.\\n4. Sprinkle the crumbled feta cheese over the top of the potato and tomato mixture.\\n5. Drizzle 2 tablespoons of olive oil over the top of the dish.\\n6. Bake the dish in the preheated oven for about 30-35 minutes, or until the potatoes are tender and the cheese is melted and golden brown.\\n7. Serve hot as a side dish with your favorite main course.\\n\\nEnjoy your delicious oven dish made with potato, tomato, feta, and olive oil!\"},\"done\":true,\"total_duration\":13330355061,\"load_duration\":382950,\"prompt_eval_count\":28,\"prompt_eval_duration\":551261000,\"eval_count\":245,\"eval_duration\":12777780000}", | ||
"body" : "{\"model\":\"orca-mini\",\"created_at\":\"2024-07-22T09:14:41.627539463Z\",\"message\":{\"role\":\"assistant\",\"content\":\" Here's a simple recipe for a delicious oven dish with potatoes, tomato, feta and olive oil:\\n\\nIngredients:\\n- 2 medium-sized potatoes, peeled and chopped into small pieces\\n- 1 medium-sized tomato, chopped\\n- 1/2 cup crumbled feta cheese\\n- 2 tablespoons olive oil\\n\\nInstructions:\\n\\n1. Preheat the oven to 375°F (190°C).\\n\\n2. In a baking dish, mix together the chopped potatoes, tomato, and crumbled feta cheese.\\n\\n3. Drizzle the olive oil over the mixture and toss everything together until evenly coated.\\n\\n4. Bake the potato dish in the preheated oven for 30-35 minutes or until the top is golden brown and crispy.\\n\\n5. Remove from the oven and let it cool for a few minutes before serving.\\n\\nEnjoy your delicious oven dish with potatoes, tomato, feta, and olive oil!\"},\"done\":true,\"total_duration\":11573233199,\"load_duration\":561525,\"prompt_eval_duration\":52398000,\"eval_count\":222,\"eval_duration\":11519384000}", | ||
"headers" : { | ||
"Date" : "Thu, 02 May 2024 08:22:19 GMT", | ||
"Date" : "Mon, 22 Jul 2024 09:14:41 GMT", | ||
"Content-Type" : "application/json; charset=utf-8" | ||
} | ||
}, | ||
"uuid" : "6d1d4506-a77f-46c6-81c5-068ab78b372d", | ||
"uuid" : "7a17ef92-ee87-4291-a924-40289295573d", | ||
"persistent" : true, | ||
"insertionIndex" : 2 | ||
"insertionIndex" : 3 | ||
} |
12 changes: 6 additions & 6 deletions
12
integration-tests/langchain4j-chat/src/test/resources/mappings/simpleMessage.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
{ | ||
"id" : "27d02f6b-e565-48b5-a64e-2e91590ff224", | ||
"id" : "4b34d025-3895-4bd9-80f9-dce99fad4012", | ||
"name" : "api_chat", | ||
"request" : { | ||
"url" : "/api/chat", | ||
"method" : "POST", | ||
"bodyPatterns" : [ { | ||
"equalToJson" : "{\"model\":\"orca-mini\",\"messages\":[{\"role\":\"USER\",\"content\":\"Hello my name is Darth Vader!\"}],\"options\":{\"temperature\":0.3},\"stream\":false}", | ||
"equalToJson" : "{\n \"model\" : \"orca-mini\",\n \"messages\" : [ {\n \"role\" : \"user\",\n \"content\" : \"Hello my name is Darth Vader!\"\n } ],\n \"options\" : {\n \"temperature\" : 0.3,\n \"top_k\" : 40,\n \"top_p\" : 0.9\n },\n \"stream\" : false\n}", | ||
"ignoreArrayOrder" : true, | ||
"ignoreExtraElements" : true | ||
} ] | ||
}, | ||
"response" : { | ||
"status" : 200, | ||
"body" : "{\"model\":\"orca-mini\",\"created_at\":\"2024-05-02T08:21:13.635823801Z\",\"message\":{\"role\":\"assistant\",\"content\":\" Hello, I'm your friendly AI assistant. How may I assist you today?\"},\"done\":true,\"total_duration\":2371281081,\"load_duration\":577023282,\"prompt_eval_count\":49,\"prompt_eval_duration\":946565000,\"eval_count\":18,\"eval_duration\":847072000}", | ||
"body" : "{\"model\":\"orca-mini\",\"created_at\":\"2024-07-22T09:15:12.778157441Z\",\"message\":{\"role\":\"assistant\",\"content\":\" Hello, I am your loyal AI assistant. Is there anything I can assist you with today?\"},\"done\":true,\"total_duration\":1277036396,\"load_duration\":576934,\"prompt_eval_count\":16,\"prompt_eval_duration\":324714000,\"eval_count\":20,\"eval_duration\":950928000}", | ||
"headers" : { | ||
"Date" : "Thu, 02 May 2024 08:21:13 GMT", | ||
"Date" : "Mon, 22 Jul 2024 09:15:12 GMT", | ||
"Content-Type" : "application/json; charset=utf-8" | ||
} | ||
}, | ||
"uuid" : "27d02f6b-e565-48b5-a64e-2e91590ff224", | ||
"uuid" : "4b34d025-3895-4bd9-80f9-dce99fad4012", | ||
"persistent" : true, | ||
"insertionIndex" : 1 | ||
"insertionIndex" : 3 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters