This is an automated email from the ASF dual-hosted git repository. jamesnetherton pushed a commit to branch camel-quarkus-main in repository https://gitbox.apache.org/repos/asf/camel-quarkus-examples.git
commit fb906fdf658721148d47f771fe0febd1e28d09b5 Author: James Netherton <jamesnether...@gmail.com> AuthorDate: Fri Jan 17 10:46:23 2025 +0000 Upgrade quarkus-langchain4j to 0.23.3 --- data-extract-langchain4j/pom.xml | 2 +- .../src/main/resources/application.properties | 1 + ...chat-32621e2b-3757-47c3-81a1-8a4fbe85fa70.json} | 12 +++++------ ..._chat-861b9f1b-91c6-4206-8c8b-7e393c33d16c.json | 24 ---------------------- ..._chat-af57842e-561e-4156-876d-75684fabb0a8.json | 24 ++++++++++++++++++++++ ...chat-fe938c62-23dc-4814-8d9a-9833afc2be3d.json} | 12 +++++------ 6 files changed, 38 insertions(+), 37 deletions(-) diff --git a/data-extract-langchain4j/pom.xml b/data-extract-langchain4j/pom.xml index 00fabe9..92abd3d 100644 --- a/data-extract-langchain4j/pom.xml +++ b/data-extract-langchain4j/pom.xml @@ -55,7 +55,7 @@ <maven-resources-plugin.version>3.3.1</maven-resources-plugin.version> <maven-surefire-plugin.version>3.5.2</maven-surefire-plugin.version> - <quarkus-langchain4j.version>0.22.0</quarkus-langchain4j.version> + <quarkus-langchain4j.version>0.23.3</quarkus-langchain4j.version> <wiremock.version>3.10.0</wiremock.version> </properties> diff --git a/data-extract-langchain4j/src/main/resources/application.properties b/data-extract-langchain4j/src/main/resources/application.properties index 98fd21e..a37b08d 100644 --- a/data-extract-langchain4j/src/main/resources/application.properties +++ b/data-extract-langchain4j/src/main/resources/application.properties @@ -15,6 +15,7 @@ ## limitations under the License. ## --------------------------------------------------------------------------- +quarkus.devservices.enabled=false quarkus.banner.enabled = false # Configure Quarkus LangChain4j that handle interactions with the Large Language Model diff --git a/data-extract-langchain4j/src/test/resources/mappings/api_chat-75e11d9e-fdc3-4873-847d-982daec53233.json b/data-extract-langchain4j/src/test/resources/mappings/api_chat-32621e2b-3757-47c3-81a1-8a4fbe85fa70.json similarity index 77% rename from data-extract-langchain4j/src/test/resources/mappings/api_chat-75e11d9e-fdc3-4873-847d-982daec53233.json rename to data-extract-langchain4j/src/test/resources/mappings/api_chat-32621e2b-3757-47c3-81a1-8a4fbe85fa70.json index 9f95f7b..1d0e5fa 100644 --- a/data-extract-langchain4j/src/test/resources/mappings/api_chat-75e11d9e-fdc3-4873-847d-982daec53233.json +++ b/data-extract-langchain4j/src/test/resources/mappings/api_chat-32621e2b-3757-47c3-81a1-8a4fbe85fa70.json @@ -1,24 +1,24 @@ { - "id" : "75e11d9e-fdc3-4873-847d-982daec53233", + "id" : "32621e2b-3757-47c3-81a1-8a4fbe85fa70", "name" : "api_chat", "request" : { "url" : "/api/chat", "method" : "POST", "bodyPatterns" : [ { - "equalToJson" : "{\n \"model\" : \"granite3-dense\",\n \"messages\" : [ {\n \"role\" : \"assistant\",\n \"content\" : \"{\\n\\\"customerSatisfied\\\": true,\\n\\\"customerName\\\": \\\"Sarah London\\\",\\n\\\"customerBirthday\\\": \\\"1986-07-10\\\",\\n\\\"summary\\\": \\\"The customer, Sarah London, called to declare an accident on her main vehicle and was informed that all expenses related to the accident would be reimbursed.\\\"\\n}\"\n }, {\n \"role\" : \"user\",\n [...] + "equalToJson" : "{\n \"model\" : \"granite3-dense\",\n \"messages\" : [ {\n \"role\" : \"assistant\",\n \"content\" : \"{\\n\\\"customerSatisfied\\\": true,\\n\\\"customerName\\\": \\\"Sarah London\\\",\\n\\\"customerBirthday\\\": \\\"1986-07-10\\\",\\n\\\"summary\\\": \\\"The customer, Sarah London, called to declare an accident on her main vehicle and was informed that all expenses related to the accident would be reimbursed.\\\"\\n}\"\n }, {\n \"role\" : \"user\",\n [...] "ignoreArrayOrder" : true, "ignoreExtraElements" : true } ] }, "response" : { "status" : 200, - "body" : "{\"model\":\"granite3-dense\",\"created_at\":\"2024-10-29T14:22:39.979850929Z\",\"message\":{\"role\":\"assistant\",\"content\":\"{\\n\\\"customerSatisfied\\\": false,\\n\\\"customerName\\\": \\\"John Doe\\\",\\n\\\"customerBirthday\\\": \\\"2001-11-01\\\",\\n\\\"summary\\\": \\\"The customer, John Doe, called to express dissatisfaction with the insurance company's reimbursement policy and was informed that the full reimbursement option had been automatically cancelled.\\\" [...] + "body" : "{\"model\":\"granite3-dense\",\"created_at\":\"2025-01-17T10:38:48.022476739Z\",\"message\":{\"role\":\"assistant\",\"content\":\"{\\n\\\"customerSatisfied\\\": false,\\n\\\"customerName\\\": \\\"John Doe\\\",\\n\\\"customerBirthday\\\": \\\"2001-11-01\\\",\\n\\\"summary\\\": \\\"The customer, John Doe, called to express his dissatisfaction with the insurance company's reimbursement policy and was informed that the full reimbursement option had been automatically cancelled. [...] "headers" : { - "Date" : "Tue, 29 Oct 2024 14:22:39 GMT", + "Date" : "Fri, 17 Jan 2025 10:38:48 GMT", "Content-Type" : "application/json; charset=utf-8" } }, - "uuid" : "75e11d9e-fdc3-4873-847d-982daec53233", + "uuid" : "32621e2b-3757-47c3-81a1-8a4fbe85fa70", "persistent" : true, - "insertionIndex" : 5 + "insertionIndex" : 119 } \ No newline at end of file diff --git a/data-extract-langchain4j/src/test/resources/mappings/api_chat-861b9f1b-91c6-4206-8c8b-7e393c33d16c.json b/data-extract-langchain4j/src/test/resources/mappings/api_chat-861b9f1b-91c6-4206-8c8b-7e393c33d16c.json deleted file mode 100644 index 7829e7a..0000000 --- a/data-extract-langchain4j/src/test/resources/mappings/api_chat-861b9f1b-91c6-4206-8c8b-7e393c33d16c.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "id" : "861b9f1b-91c6-4206-8c8b-7e393c33d16c", - "name" : "api_chat", - "request" : { - "url" : "/api/chat", - "method" : "POST", - "bodyPatterns" : [ { - "equalToJson" : "{\n \"model\" : \"granite3-dense\",\n \"messages\" : [ {\n \"role\" : \"assistant\",\n \"content\" : \"{\\n\\\"customerSatisfied\\\": false,\\n\\\"customerName\\\": \\\"John Doe\\\",\\n\\\"customerBirthday\\\": \\\"2001-11-01\\\",\\n\\\"summary\\\": \\\"The customer, John Doe, called to express dissatisfaction with the insurance company's reimbursement policy and was informed that the full reimbursement option had been automatically cancelled.\\\"\\n}\"\n [...] - "ignoreArrayOrder" : true, - "ignoreExtraElements" : true - } ] - }, - "response" : { - "status" : 200, - "body" : "{\"model\":\"granite3-dense\",\"created_at\":\"2024-10-29T14:22:53.209341109Z\",\"message\":{\"role\":\"assistant\",\"content\":\"{\\n\\\"customerSatisfied\\\": true,\\n\\\"customerName\\\": \\\"Kate Boss\\\",\\n\\\"customerBirthday\\\": \\\"1999-08-13\\\",\\n\\\"summary\\\": \\\"The customer, Kate Boss, called to inquire about a proof of insurance after an accident and the operator helped her find her contract and arranged for the proof to be sent to the police station.\\\ [...] - "headers" : { - "Date" : "Tue, 29 Oct 2024 14:22:53 GMT", - "Content-Type" : "application/json; charset=utf-8" - } - }, - "uuid" : "861b9f1b-91c6-4206-8c8b-7e393c33d16c", - "persistent" : true, - "insertionIndex" : 4 -} \ No newline at end of file diff --git a/data-extract-langchain4j/src/test/resources/mappings/api_chat-af57842e-561e-4156-876d-75684fabb0a8.json b/data-extract-langchain4j/src/test/resources/mappings/api_chat-af57842e-561e-4156-876d-75684fabb0a8.json new file mode 100644 index 0000000..7c82044 --- /dev/null +++ b/data-extract-langchain4j/src/test/resources/mappings/api_chat-af57842e-561e-4156-876d-75684fabb0a8.json @@ -0,0 +1,24 @@ +{ + "id" : "af57842e-561e-4156-876d-75684fabb0a8", + "name" : "api_chat", + "request" : { + "url" : "/api/chat", + "method" : "POST", + "bodyPatterns" : [ { + "equalToJson" : "{\n \"model\" : \"granite3-dense\",\n \"messages\" : [ {\n \"role\" : \"assistant\",\n \"content\" : \"{\\n\\\"customerSatisfied\\\": false,\\n\\\"customerName\\\": \\\"John Doe\\\",\\n\\\"customerBirthday\\\": \\\"2001-11-01\\\",\\n\\\"summary\\\": \\\"The customer, John Doe, called to express his dissatisfaction with the insurance company's reimbursement policy and was informed that the full reimbursement option had been automatically cancelled.\\\"\\n}\" [...] + "ignoreArrayOrder" : true, + "ignoreExtraElements" : true + } ] + }, + "response" : { + "status" : 200, + "body" : "{\"model\":\"granite3-dense\",\"created_at\":\"2025-01-17T10:39:13.035382934Z\",\"message\":{\"role\":\"assistant\",\"content\":\"{\\n\\\"customerSatisfied\\\": true,\\n\\\"customerName\\\": \\\"Kate Boss\\\",\\n\\\"customerBirthday\\\": \\\"1999-08-13\\\",\\n\\\"summary\\\": \\\"The customer, Kate Boss, called to request a proof of insurance after an accident and was informed that the contract was found and the proof would be sent to the police station.\\\"\\n}\"},\"done_r [...] + "headers" : { + "Date" : "Fri, 17 Jan 2025 10:39:13 GMT", + "Content-Type" : "application/json; charset=utf-8" + } + }, + "uuid" : "af57842e-561e-4156-876d-75684fabb0a8", + "persistent" : true, + "insertionIndex" : 118 +} \ No newline at end of file diff --git a/data-extract-langchain4j/src/test/resources/mappings/api_chat-b837ed7e-cb2a-43f4-84a9-8522b0c4d34d.json b/data-extract-langchain4j/src/test/resources/mappings/api_chat-fe938c62-23dc-4814-8d9a-9833afc2be3d.json similarity index 74% rename from data-extract-langchain4j/src/test/resources/mappings/api_chat-b837ed7e-cb2a-43f4-84a9-8522b0c4d34d.json rename to data-extract-langchain4j/src/test/resources/mappings/api_chat-fe938c62-23dc-4814-8d9a-9833afc2be3d.json index ddfc598..6076a8c 100644 --- a/data-extract-langchain4j/src/test/resources/mappings/api_chat-b837ed7e-cb2a-43f4-84a9-8522b0c4d34d.json +++ b/data-extract-langchain4j/src/test/resources/mappings/api_chat-fe938c62-23dc-4814-8d9a-9833afc2be3d.json @@ -1,24 +1,24 @@ { - "id" : "b837ed7e-cb2a-43f4-84a9-8522b0c4d34d", + "id" : "fe938c62-23dc-4814-8d9a-9833afc2be3d", "name" : "api_chat", "request" : { "url" : "/api/chat", "method" : "POST", "bodyPatterns" : [ { - "equalToJson" : "{\n \"model\" : \"granite3-dense\",\n \"messages\" : [ {\n \"role\" : \"user\",\n \"content\" : \"Extract information about a customer from the text delimited by triple backticks: ```Operator: Hello, how may I help you ?\\nCustomer: Hello, I'm calling because I need to declare an accident on my main vehicle.\\nOperator: Ok, can you please give me your name ?\\nCustomer: My name is Sarah London.\\nOperator: Could you please give me your birth date ?\\nCustom [...] + "equalToJson" : "{\n \"model\" : \"granite3-dense\",\n \"messages\" : [ {\n \"role\" : \"user\",\n \"content\" : \"Extract information about a customer from the text delimited by triple backticks: ```Operator: Hello, how may I help you ?\\nCustomer: Hello, I'm calling because I need to declare an accident on my main vehicle.\\nOperator: Ok, can you please give me your name ?\\nCustomer: My name is Sarah London.\\nOperator: Could you please give me your birth date ?\\nCustom [...] "ignoreArrayOrder" : true, "ignoreExtraElements" : true } ] }, "response" : { "status" : 200, - "body" : "{\"model\":\"granite3-dense\",\"created_at\":\"2024-10-29T14:22:27.462514101Z\",\"message\":{\"role\":\"assistant\",\"content\":\"{\\n\\\"customerSatisfied\\\": true,\\n\\\"customerName\\\": \\\"Sarah London\\\",\\n\\\"customerBirthday\\\": \\\"1986-07-10\\\",\\n\\\"summary\\\": \\\"The customer, Sarah London, called to declare an accident on her main vehicle and was informed that all expenses related to the accident would be reimbursed.\\\"\\n}\"},\"done_reason\":\"stop\", [...] + "body" : "{\"model\":\"granite3-dense\",\"created_at\":\"2025-01-17T10:38:23.380035411Z\",\"message\":{\"role\":\"assistant\",\"content\":\"{\\n\\\"customerSatisfied\\\": true,\\n\\\"customerName\\\": \\\"Sarah London\\\",\\n\\\"customerBirthday\\\": \\\"1986-07-10\\\",\\n\\\"summary\\\": \\\"The customer, Sarah London, called to declare an accident on her main vehicle and was informed that all expenses related to the accident would be reimbursed.\\\"\\n}\"},\"done_reason\":\"stop\", [...] "headers" : { - "Date" : "Tue, 29 Oct 2024 14:22:27 GMT", + "Date" : "Fri, 17 Jan 2025 10:38:23 GMT", "Content-Type" : "application/json; charset=utf-8" } }, - "uuid" : "b837ed7e-cb2a-43f4-84a9-8522b0c4d34d", + "uuid" : "fe938c62-23dc-4814-8d9a-9833afc2be3d", "persistent" : true, - "insertionIndex" : 6 + "insertionIndex" : 120 } \ No newline at end of file