Cohere Proxy

 1---
 2# Passthrough access to the Cohere API, with the platform's API key.
 3# Use the Cohere SDK, with base_url="https://<smarter>/api/v1/proxy/cohere/". The SDK adds the
 4# API version, e.g. v2/, to its paths.
 5apiVersion: smarter.sh/v1
 6kind: Proxy
 7metadata:
 8  name: cohere
 9  description: Passthrough access to the Cohere API's chat, embed, rerank and models endpoints.
10  version: 1.0.0
11  tags:
12    - cohere
13    - builtin
14  annotations:
15    - smarter.sh/proxy/builtin: "true"
16    - smarter.sh/proxy/documentation: https://docs.cohere.com/reference/about
17spec:
18  provider: cohere
19  apiKey: cohere_api_key
20  baseUrl: https://api.cohere.com/
21  auth:
22    header: Authorization
23    scheme: Bearer
24  allowedPaths:
25    - v2/chat
26    - v2/embed
27    - v2/rerank
28    - v1/chat
29    - v1/embed
30    - v1/rerank
31    - v1/models
32    - v1/models/*
33  timeout: 120
34  isActive: true