Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
waki285 committed Aug 3, 2023
1 parent db03785 commit c21f9a1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ app.post("/interactions", async (c) => {
const models = jsonData.data
.filter((x: { object: "model" }) => x.object === "model")
.map((x: { id: string }) => x.id);
logger.debug(models);
return c.json({
type: InteractionResponseType.ChannelMessageWithSource,
data: {
Expand All @@ -161,8 +162,13 @@ app.post("/interactions", async (c) => {
{
name: "GPT-4",
value: `${models.includes("gpt-4") ? "🟢" : "🔴"}`,
inline: true,
},
{
name: "Usable models",
value: models.join(","),
inline: true,
},
{ name: "Usable models", value: models.join(",") },
],
},
],
Expand Down

0 comments on commit c21f9a1

Please sign in to comment.