-
Notifications
You must be signed in to change notification settings - Fork 23
Feature : update app title connector type and model name #481
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
Feature : update app title connector type and model name #481
Conversation
…tered as a singleton
… header display test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다!
좀 더 보겠습니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
일단은 Main 과 Conflict 해결하고 살펴보시면 될 것 같습니다.
test/OpenChat.PlaygroundApp.Tests/Components/Pages/Chat/ChatHeaderUITests.cs
Outdated
Show resolved
Hide resolved
test/OpenChat.PlaygroundApp.Tests/Components/Pages/Chat/ChatHeaderUITests.cs
Outdated
Show resolved
Hide resolved
- Add AppSettingsExtensions.cs with AddAppSettings() extension method - Separate configuration logic from Program.cs for better maintainability - Implement model name resolution with command-line argument priority - Support all connector types with proper fallback to configuration defaults - Follow existing project patterns (similar to EndpointExtensions)
Conflict 해결하고
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Extensions에 대한 테스트코드도 추가돼야 합니다.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
모델명을 가져오는 게 커넥터 타입에 따라서 3가지로 분기가 되는데
- Model
- DeploymentName
- Alias
2, 3에 대한 경우가 추가되야 할 것 같습니다.
test/OpenChat.PlaygroundApp.Tests/Extensions/AppSettingsExtensionsTests.cs
Outdated
Show resolved
Hide resolved
test/OpenChat.PlaygroundApp.Tests/Extensions/AppSettingsExtensionsTests.cs
Outdated
Show resolved
Hide resolved
test/OpenChat.PlaygroundApp.Tests/Extensions/AppSettingsExtensionsTests.cs
Outdated
Show resolved
Hide resolved
…uration setup and updating test cases for clarity
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2가지를 보완하면 좋을 것 같은데요.
AddAppSettings
을 할 때 오류가 발생하는 경우에 대한 테스트가 추가되면 좋겠습니다. 일단 configuration이나 settings가 null과 같이 정상적이지 않은 경우가 떠오르네요.- Model, DeploymentName, Alias에 대해 switch로 분기해서 테스트를 하고 있는데, 따로 분리하는 게 좋아 보입니다. 테스트 메소드에서 if나 switch 사용은 지양하시는 게 맞습니다.
- Separated complex tests using [Theory] and switch statements into individual [Fact] tests for each connector type.
…AppSettings method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
아마 마지막 리뷰 코멘트일 것 같은데요.
테스트에서 사용하는 문자열 변수를 상수로 분리하는 게 어떨까요?
예를들어
private const string openaiModel = "openai-default-model"
이런 식으로요.
test/OpenChat.PlaygroundApp.Tests/Extensions/AppSettingsExtensionsTests.cs
Show resolved
Hide resolved
…s to include message validation
test/OpenChat.PlaygroundApp.Tests/Extensions/AppSettingsExtensionsTests.cs
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
수고하셨습니다!
@jisunchung @sikutisa |
Purpose
OpenChat Playground – <Connector Type> | <Model Name>
Does this introduce a breaking change?
Pull Request Type
What kind of change does this Pull Request introduce?
README updated?
The top-level readme for this repo contains a link to each sample in the repo. If you're adding a new sample did you update the readme?
How to Test
What to Check
Other Information
AppSettings
인스턴스에 모델 이름을 저장하기 위한Model
프로퍼티를 추가했습니다.IConfiguration
에 대한 직접적인 의존성을 제거했습니다.