Skip to content

Commit

Permalink
refactor: chagned field names
Browse files Browse the repository at this point in the history
  • Loading branch information
mjkweon17 committed Mar 23, 2024
1 parent 001d59d commit e1a8617
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/recommendations/schemas.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class UserInfo(BaseModel):


class RecommendationRequest(BaseModel):
content: str = Field(..., title="content", description="content", example="contentcontentcontentcontent")
essay: str = Field(..., title="content", description="content", example="contentcontentcontentcontent")


class BookmarkBase(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion src/recommendations/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
def get_recommendations_service(request: RecommendationRequest, db: Session):

# 사용자가 작성한 글의 내용을 가져온다
content = request.content
content = request.essay

# 글을 embedding 한다
embedding = get_embedding(content)
Expand Down

0 comments on commit e1a8617

Please sign in to comment.