Skip to content

Commit

Permalink
Update hono and openai versions in package-lock and package files.
Browse files Browse the repository at this point in the history
  • Loading branch information
yasuaki640 committed Nov 16, 2024
1 parent f1e2945 commit e9a7949
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 23 deletions.
40 changes: 20 additions & 20 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
},
"dependencies": {
"drizzle-orm": "^0.30.10",
"hono": "^4.5.2",
"openai": "^4.42.0",
"hono": "^4.6.10",
"openai": "^4.72.0",
"rehype-sanitize": "^6.0.0",
"rehype-stringify": "^10.0.0",
"remark-parse": "^11.0.0",
Expand Down
2 changes: 1 addition & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ app.post("/chats/:roomId", async (c) => {
if (messageHistory.length === 0) {
const completion = await fetchCompletion(
c.var.openai,
`次の質問に対して、短くわかりやすい題名をつけてください。質問文: ${newMessage}`,
`次の質問に対して、短くわかりやすい題名をつけてください。${newMessage}`,
);
const roomTitle = completion.choices[0].message.content;
await updateRoom(db, roomId, { roomId, roomTitle });
Expand Down

0 comments on commit e9a7949

Please sign in to comment.