cors 문제 해결 .
This commit is contained in:
1 parent
a52321e68d
commit
1b647ba2d5
7 files changed
+144
-27
No files matched your search
@@ -35,8 +35,10 @@ class ChatService:
|
||||
chat_engine = ChatEngine(repo, rq_type=(session.rq_type if session else req.rq_type))
|
||||
|
||||
if session is None:
|
||||
# session_id honoring: backend 가 보낸 session_id(= negotiation.sessions.session_id)를
|
||||
# 새 uuid 발급 없이 그대로 세션 키로 쓴다. 없으면(직접 호출/데모) 생성.
|
||||
session = ChatSession(
|
||||
session_id=str(uuid.uuid4()), tenant_id=engine.tenant_id, company_id=engine.company_id,
|
||||
session_id=req.session_id or str(uuid.uuid4()), tenant_id=engine.tenant_id, company_id=engine.company_id,
|
||||
rq_type=req.rq_type, action_space_size=engine.action_space_size,
|
||||
context={
|
||||
"revenue_amount": req.revenue_amount, "distribution_code": req.distribution_code,
|
||||
|
||||
Reference in new issue
Block a user