ai-forever / ai-forever/spring-ai-gigachat
Внутренний RetryTemplate
- Ngôn ngữ chính
- Java
- Star
- 49
- Fork
- 30
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Необходимо добавить внутренний бин RetryTemplate c квалификатором (@Qualifier)
Проблема: сейчас используется общий бин RetryTemplate и в проекте с подключенной библиотекой невозможно создать свой собсенный квалифицированный бин RetryTemplate для личных нужд.
Причина: Spring не может собрать контекст, так как компонент ChatClientAutoConfiguration ожидает бин RetryTemplate, но не может выбрать какой именно взять.
Пример:
Parameter 1 of method chatClientBuilder in org.springframework.ai.model.chat.client.autoconfigure.ChatClientAutoConfiguration required a single bean, but 2 were found:
- retryTemplate: defined by method 'retryTemplate' in class path resource [org/springframework/ai/retry/autoconfigure/SpringAiRetryAutoConfiguration.class]
- command-retry-template: defined by method 'retryTemplate' in class path resource [ru/sber/airiskhub/sberchat/autoconfigure/CommandApiConfiguration.class]
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.