bibibi12345 commited on
Commit
feeff94
·
2 Parent(s): af91a4d b420d47

Merge branch 'main' of https://huggingface.co/spaces/bibibi12345/notion2api

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -67,7 +67,7 @@ def build_notion_request(request_data: ChatCompletionRequest) -> NotionRequestBo
67
  transcript.append(NotionTranscriptItem(type="markdown-chat", value=message.content))
68
  else:
69
  # Map user, system, and any other potential roles to 'user'
70
- transcript.append(NotionTranscriptItem(type="user", value=[[message.content]]))
71
 
72
  # Use globally configured spaceId, set createThread=True
73
  return NotionRequestBody(
 
67
  transcript.append(NotionTranscriptItem(type="markdown-chat", value=message.content))
68
  else:
69
  # Map user, system, and any other potential roles to 'user'
70
+ transcript.append(NotionTranscriptItem(type="user", value=message.content))
71
 
72
  # Use globally configured spaceId, set createThread=True
73
  return NotionRequestBody(