As part of our filing for Chapter 11 bankruptcy relief, Akamai has acquired select assets from Edgio, including certain customer contracts from our content delivery, applications, and security businesses, but not including Uplynk. We encourage any active Edgio delivery, applications, or security customers that are not already engaged with Akamai to migrate their services, to contact their local Akamai office or support@edg.io as soon as possible to help avoid service interruptions. Service will end on January 15, 2025.


Any Edgio Uplynk customers can reach out to support@uplynk.com for any questions or concerns.

Edgio

Cohere

This project integrates Cohere for leveraging state-of-the-art natural language processing (NLP) capabilities. This example will demonstrate how to use the summarize API endpoint. It is built using an Express.js server to facilitate the interaction with Cohere’s API.
Utilizing Edgio alongside Cohere enhances the application’s ability to process and summarize text efficiently, ensuring lower latencies, improved scalability, and a better overall user experience across different geographies.

Prerequisites

Setup requires:

Install the Edgio CLI

If you have not already done so, install the Edgio CLI.
Bash
1npm i -g @edgio/cli@latest

Getting Started

Clone the edgio-v7-ai-example repo and navigate to the cohere-example directory.
Bash
1git clone https://github.com/edgio-docs/edgio-v7-ai-example.git
2cd cohere
Prepare your environment variables in a .env file by duplicating the .env.example file to .env and inserting your Cohere API key.
Bash
1cp .env.example .env
Install the necessary dependencies.
Bash
1npm i
If you haven’t already, install the Edgio CLI. Use edgio dev to start your development server:
Bash
1edgio dev
You can preview your application at http://localhost:3000.

Deployment

Deploy your project with the edgio deploy command:
Bash
1edgio deploy