feat: LLM Provider 추상화 (OpenAI/Ollama 프로파일 전환)#70
Closed
jumdo12 wants to merge 1 commit into
Closed
Conversation
- OpenAiConfig → AiConfig 리네임, summarizerChatClient 빈 프로파일별 분리 - ConversationContextSummarizer에서 OpenAiChatOptions 제거, @qualifier 주입으로 교체 - application.yaml에 Ollama 비활성화 선언 추가 - application-ollama.yml 추가 (--spring.profiles.active=ollama로 전환) - build.gradle에 spring-ai-starter-model-ollama 추가 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Contributor
Author
|
Ollama 지원 불필요로 취소 |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
작업 내용
OpenAiConfig→AiConfig리네임summarizerChatClient빈 분리!ollama(기본):OpenAiChatOptions로 gpt-4o-mini 설정ollama:OllamaOptions로 llama3.2 설정ConversationContextSummarizer에서OpenAiChatOptions제거 →@Qualifier("summarizerChatClient")주입application.yaml에 Ollama 비활성화 선언application-ollama.yml추가변경 이유
OpenAiChatOptions가 비즈니스 로직에 포함되어 있어 provider 교체 시 코드 수정이 필요했음.프로파일 전환만으로 OpenAI ↔ Ollama 교체 가능하도록 추상화.
사용법
테스트
./gradlew build빌드 확인Closes #69