Skip to content

Commit d69d9f6

Browse files
committed
fix : 잔 요류 수정
1 parent 1786b60 commit d69d9f6

File tree

5 files changed

+34
-6
lines changed

5 files changed

+34
-6
lines changed

ProjectVG.Api/Controllers/AuthController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
namespace ProjectVG.Api.Controllers
77
{
88
[ApiController]
9-
[Route("api/[controller]")]
9+
[Route("api/v1/[controller]")]
1010
public class AuthController : ControllerBase
1111
{
1212
private readonly IAuthService _authService;

ProjectVG.Api/Controllers/ChatController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public ChatController(IChatService chatService)
2020
_chatService = chatService;
2121
}
2222

23-
[HttpPost("process")]
23+
[HttpPost]
2424
[JwtAuthentication]
2525
public async Task<IActionResult> ProcessChat([FromBody] ChatRequest request)
2626
{

ProjectVG.Application/ApplicationServiceCollectionExtensions.cs

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
using ProjectVG.Application.Services.Character;
44
using ProjectVG.Application.Services.Chat;
55
using ProjectVG.Application.Services.Chat.CostTracking;
6+
using ProjectVG.Application.Services.Chat.Preprocessors;
7+
using ProjectVG.Application.Services.Chat.Processors;
8+
using ProjectVG.Application.Services.Chat.Validators;
9+
using ProjectVG.Application.Services.Chat.Handlers;
610
using ProjectVG.Application.Services.Conversation;
711
using ProjectVG.Application.Services.Session;
812
using ProjectVG.Application.Services.Users;
@@ -25,10 +29,34 @@ public static IServiceCollection AddApplicationServices(this IServiceCollection
2529
// Character Services
2630
services.AddScoped<ICharacterService, CharacterService>();
2731

28-
// Chat Services
32+
// Chat Services - Core
2933
services.AddScoped<IChatService, ChatService>();
3034
services.AddScoped<IChatMetricsService, ChatMetricsService>();
3135

36+
services.AddScoped<ICharacterService, CharacterService>();
37+
services.AddScoped<IUserService, UserService>();
38+
39+
// Chat Services - Validators
40+
services.AddScoped<ChatRequestValidator>();
41+
42+
// Chat Services - Preprocessors
43+
services.AddScoped<MemoryContextPreprocessor>();
44+
services.AddScoped<UserInputAnalysisProcessor>();
45+
46+
// Chat Services - Processors
47+
services.AddScoped<UserInputActionProcessor>();
48+
services.AddScoped<ChatLLMProcessor>();
49+
services.AddScoped<ChatTTSProcessor>();
50+
services.AddScoped<ChatResultProcessor>();
51+
52+
// Chat Services - Handlers
53+
services.AddScoped<ChatFailureHandler>();
54+
55+
// Chat Services - Cost Tracking Decorators
56+
services.AddCostTrackingDecorator<UserInputAnalysisProcessor>("UserInputAnalysis");
57+
services.AddCostTrackingDecorator<ChatLLMProcessor>("ChatLLM");
58+
services.AddCostTrackingDecorator<ChatTTSProcessor>("ChatTTS");
59+
3260
// Conversation Services
3361
services.AddScoped<IConversationService, ConversationService>();
3462

ProjectVG.Application/Services/Auth/AuthService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ public async Task<AuthResult> LoginWithOAuthAsync(string provider, string provid
4141
{
4242
// 새로운 게스트 사용자 생성
4343
var createCommand = new UserCreateCommand(
44-
Username: $"guest_{providerUserId}",
45-
Email: $"guest_{providerUserId}@guest.local",
44+
Username: $"guest",
45+
Email: $"guest@guest.local",
4646
ProviderId: providerUserId,
4747
Provider: "guest"
4848
);

test-clients/test-client.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@
211211
const ENDPOINT = `${currentHost}:${serverPort}`;
212212
const WS_URL = `ws://${ENDPOINT}/ws`;
213213
const HTTP_URL = `http://${ENDPOINT}/api/v1/chat`;
214-
const LOGIN_URL = `http://${ENDPOINT}/api/auth/guest-login`;
214+
const LOGIN_URL = `http://${ENDPOINT}/api/v1/auth/guest-login`;
215215
const SERVER_MESSAGE_TYPE = "json";
216216
let sessionId = null;
217217
let ws = null;

0 commit comments

Comments
 (0)