Skip to content

A cloudflare worker to covert cohere api to openai API

Notifications You must be signed in to change notification settings

beanqi/cohere2openai

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

cohere2openai

A cloudflare worker to covert cohere api to openai api 中文文档

How to use

  1. Create a new worker in cloudflare
  2. Copy the code in worker.js to the worker
  3. Setting environment variables in the worker
    • API_AUTH_TOKEN: your cohere api key
  4. Deploy the worker
  5. Use the worker url as the api endpoint
  6. Band custom domain to the worker if needed (Optional)

Something you must know

I force the worker to use command-r-plus model, the code is here, you can annotate it if you want to use other models.

About

A cloudflare worker to covert cohere api to openai API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published