Skip to content

Commit

Permalink
Update header
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlee85 committed Mar 14, 2024
1 parent 70a5ad1 commit 21a3926
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions examples/v7-ai/cohere/edgio/cohere.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ const { COHERE_API_TOKEN } = process.env;
export default function cohereHandler({ compute }) {
compute(async (req, res) => {
const { text } = JSON.parse(req.body);

if (!text) {
res.statusCode = 400;
res.statusMessage = 'Text is required for summarization.';
return;
}

const cohere = new CohereClient({
token: COHERE_API_TOKEN,
});
Expand Down
10 changes: 5 additions & 5 deletions examples/v7-ai/cohere/src/app/layout.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Inter } from "next/font/google";
import "./globals.css";
import { Inter } from 'next/font/google';
import './globals.css';

const inter = Inter({ subsets: ["latin"] });
const inter = Inter({ subsets: ['latin'] });

export const metadata = {
title: "Create Next App",
description: "Generated by create next app",
title: 'Edgio + Cohere AI Example',
description: 'An example of using Cohere AI with Edgio',
};

export default function RootLayout({ children }) {
Expand Down

0 comments on commit 21a3926

Please sign in to comment.