Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recommend fault tolerance instead of max-retries #177

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Recommend fault tolerance instead of max-retries
geoand committed Dec 20, 2023
commit 90cf1e7379ee58ca5aa304116dad0e8bc03cab38
Original file line number Diff line number Diff line change
@@ -113,23 +113,6 @@ endif::add-copy-button-to-env-var[]
|`10S`


a| [[quarkus-langchain4j-openai_quarkus.langchain4j.openai.max-retries]]`link:#quarkus-langchain4j-openai_quarkus.langchain4j.openai.max-retries[quarkus.langchain4j.openai.max-retries]`


[.description]
--
The maximum number of times to retry

ifdef::add-copy-button-to-env-var[]
Environment variable: env_var_with_copy_button:+++QUARKUS_LANGCHAIN4J_OPENAI_MAX_RETRIES+++[]
endif::add-copy-button-to-env-var[]
ifndef::add-copy-button-to-env-var[]
Environment variable: `+++QUARKUS_LANGCHAIN4J_OPENAI_MAX_RETRIES+++`
endif::add-copy-button-to-env-var[]
--|int
|`3`


a| [[quarkus-langchain4j-openai_quarkus.langchain4j.openai.log-requests]]`link:#quarkus-langchain4j-openai_quarkus.langchain4j.openai.log-requests[quarkus.langchain4j.openai.log-requests]`


Original file line number Diff line number Diff line change
@@ -47,9 +47,13 @@ public interface Langchain4jAzureOpenAiConfig {
Duration timeout();

/**
* The maximum number of times to retry
* The maximum number of times to retry.
*
* @deprecated Users are encouraged to use <a href="https://quarkus.io/guides/smallrye-fault-tolerance">SmallRye Fault
* Tolerance</a> instead
*/
@WithDefault("3")
@WithDefault("1")
@Deprecated
Integer maxRetries();

/**
Original file line number Diff line number Diff line change
@@ -32,7 +32,11 @@ public interface Langchain4jOpenAiConfig {

/**
* The maximum number of times to retry
*
* @deprecated Users are encouraged to use <a href="https://quarkus.io/guides/smallrye-fault-tolerance">SmallRye Fault
* Tolerance</a> instead
*/
@Deprecated
@WithDefault("3")
Integer maxRetries();