Skip to content

Commit

Permalink
fix: url generation
Browse files Browse the repository at this point in the history
  • Loading branch information
PrinceBaghel258025 committed Nov 14, 2023
1 parent a82ad12 commit f61a32f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/app/api/chatmodel/[chatid]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ export async function POST(
console.log("got in 1 length case");
_chat.push(latestReponse);
fetch(
`zeplo.to/${urlArray[2]}/api/generateTitle/${id}/${orgId}?_token=${env.ZEPLO_TOKEN}`,
`https://zeplo.to/https://${urlArray[2]}/api/generateTitle/${id}/${orgId}?_token=${env.ZEPLO_TOKEN}`,
// `https://zeplo.to/https://echoes-ksyl6ee7h-tcr.vercel.app/api/generateTitle/1318/org_2SaqWIpmGf4bkmTGoFpc6kk1RDx?_token=ihaLqOwKwvWqtYaMPqHR8QGko3a2lstVqJuYXg`,
{
method: "POST",
body: JSON.stringify({ chat: _chat }),
Expand Down
2 changes: 1 addition & 1 deletion src/app/api/generateTitle/[chatid]/[orgid]/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export async function POST(
const mainUrl = urlArray.slice(0, 3).join("/");
const fullResponse = await generateTitle(messages);
fetch(
`zeplo.to/${urlArray[2]}/api/generateImage/${chatId}/${orgId}?_token=${env.ZEPLO_TOKEN}`,
`https://zeplo.to/https://${urlArray[2]}/api/generateImage/${chatId}/${orgId}?_token=${env.ZEPLO_TOKEN}`,
{
method: "POST",
body: JSON.stringify({ chatTitle: fullResponse }),
Expand Down

0 comments on commit f61a32f

Please sign in to comment.