From 2231dc22b398f6dc6cd804d34b16923d0eb5f340 Mon Sep 17 00:00:00 2001 From: Kevin Dubois Date: Thu, 15 May 2025 13:38:06 +0200 Subject: [PATCH] set langchain4j timeout set langchain4j timeout explicitly since openai service is sometimes too slow per https://github.com/redhat-developer-demos/quarkus-tutorial/issues/171 --- documentation/modules/ROOT/pages/17_prompts.adoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/documentation/modules/ROOT/pages/17_prompts.adoc b/documentation/modules/ROOT/pages/17_prompts.adoc index da7b598..56b5ba1 100644 --- a/documentation/modules/ROOT/pages/17_prompts.adoc +++ b/documentation/modules/ROOT/pages/17_prompts.adoc @@ -54,6 +54,8 @@ LangChain4j provides you a proxy to connect your application to OpenAI by just a quarkus.langchain4j.openai.api-key=demo # Change this URL to the model provider of your choice quarkus.langchain4j.openai.base-url=https://api.openai.com/v1 +# Set timeout explicitly (default is 10s) +quarkus.langchain4j.openai.timeout=30s ---- @@ -153,4 +155,4 @@ depending on the response from the non-deterministic LLM): [source,text] ---- The Earth is not flat, it is an oblate spheroid, meaning it is mostly spherical in shape but slightly flattened at the poles and bulging at the equator. This shape is due to the Earth's rotation, which causes it to bulge slightly at the equator and flatten at the poles. The idea that the Earth is flat is a misconception that has been debunked by centuries of scientific evidence, including satellite imagery, photos from space, and measurements of the Earth's curvature. ----- \ No newline at end of file +----