FEAT: Claude 말고 다른 클라우드 모델도 고를 수 있게 - #53
Merged
Merged
Conversation
첫 실행 화면에는 Claude와 로컬 모델만 있었고, 설정에서는 모델 ID를 외워서 입력해야 했음. 제공자 목록(OpenAI, Gemini, DeepSeek, xAI, Mistral, Groq, OpenRouter 등)을 한곳에 두고, 키를 넣으면 그 회사의 모델 목록을 받아 대화용 모델만 골라 보여 줌. 채팅 입력창의 모델 버튼으로 연결해 둔 모델끼리 바로 바꿈. 키 이름이 있는 클라우드 모델은 실제로 키가 있을 때만 쓸 수 있다고 표시함. Closes #52
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.
무엇을
Claude 말고 다른 클라우드 모델을 쓰기 어려웠습니다(#52).
어떻게
providers.ts): Anthropic(Claude), OpenAI(GPT), Google Gemini, DeepSeek, xAI(Grok), Mistral, Groq, OpenRouter, Ollama, LM Studio, 기타 OpenAI 호환. Anthropic 말고는 모두 OpenAI 호환 API라 주소만 다름/models)을 받아 고르게 함. 임베딩·음성·이미지 모델은 빼고, Gemini의models/접두사는 떼고, 제공자별로 먼저 골라 둘 모델을 정함model_info의has_key가 OpenAI 호환 모델이면 키가 없어도 true였음. 키 이름이 있는 클라우드 모델은 실제로 키를 찾아봄 (로컬 서버는 그대로 true)확인
실제 앱(릴리스 빌드)을 격리된 설정으로 띄우고 가짜 OpenAI 호환 서버로 확인 (키는 환경변수로만 넘겨 OS 자격 증명 저장소에 쓰지 않음). 9개 모두 통과:
AIza…)과 발급 주소가 바뀜gemini-2.5-pro, gpt-5, gpt-5-mini; 임베딩·whisper·tts 제외), 키를 Bearer로 보냄, 고른 모델이 설정 파일에 저장됨확인하지 못한 것: 실제 OpenAI·Gemini·DeepSeek 등의 키로 대화까지 해 보지는 않았습니다. 모두 OpenAI 호환 API라 기존 OpenAI 호환 경로(Ollama로 확인된 경로)를 그대로 쓰지만, 제공자마다 도구 호출·스트리밍 세부가 다를 수 있습니다.
Closes #52