Skip to content
This repository was archived by the owner on Mar 18, 2026. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/app/HomePage.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ $white: #ffffff;

@media (min-width: 1440px) {
width: 80vw;
padding: 6rem 5rem;
padding: 5rem 4rem;
}
}

Expand Down Expand Up @@ -248,11 +248,11 @@ $white: #ffffff;
margin-bottom: 1.5rem;

@media (min-width: 640px) {
font-size: 3.2rem;
font-size: 2.8rem;
}

@media (min-width: 1024px) {
font-size: 3.8rem;
font-size: 3rem;
}

.highlight {
Expand Down
40 changes: 24 additions & 16 deletions src/app/api/chatAPI.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Configuration API 호출 함수들을 관리하는 파일
import { devLog } from '@/app/utils/logger';
import { API_BASE_URL } from '@/app/config.js';

/**
Expand Down Expand Up @@ -43,26 +42,35 @@ export const createNewChat = async ({ interaction_id, input_data = null }) => {
* @param {string} params.interaction_id - The interaction identifier
* @param {string} [params.workflow_id] - Optional workflow ID (defaults to "default_mode")
* @param {string} [params.workflow_name] - Optional workflow name (defaults to "default_mode")
* @param {string|null} [params.selectedCollection] - Optional selected collection for default_mode
* @returns {Promise<Object>} A promise that resolves with the chat response
*/
export const executeChatMessage = async ({
user_input,
interaction_id,
workflow_id = "default_mode",
workflow_name = "default_mode"
export const executeChatMessage = async ({
user_input,
interaction_id,
workflow_id = "default_mode",
workflow_name = "default_mode",
selectedCollection = null,
}) => {
try {
const requestBody = {
user_input,
interaction_id,
workflow_id,
workflow_name,
};

// selectedCollection이 있으면 body에 추가
if (selectedCollection) {
requestBody.selected_collection = selectedCollection;
}

const response = await fetch(`${API_BASE_URL}/api/chat/execution`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: JSON.stringify({
user_input,
interaction_id,
workflow_id,
workflow_name
}),
body: JSON.stringify(requestBody),
});

if (!response.ok) {
Expand All @@ -85,10 +93,10 @@ export const executeChatMessage = async ({
* @param {boolean} [params.isNewChat] - Whether this is a new chat session
* @returns {Promise<Object>} A promise that resolves with the chat response
*/
export const sendMessage = async ({
message,
interaction_id = null,
isNewChat = false
export const sendMessage = async ({
message,
interaction_id = null,
isNewChat = false
}) => {
try {
// Generate interaction ID if not provided
Expand Down
259 changes: 0 additions & 259 deletions src/app/api/ragAPI.js

This file was deleted.

Loading