cohere-ai / cohere-typescript

The Cohere TypeScript SDK
https://docs.cohere.ai
MIT License
127 stars 18 forks source link

feat: add type exports for cohere service #88

Closed suenalaba closed 1 year ago

suenalaba commented 1 year ago

I am currently facing the same issue mentioned in this Github Issue #74.

This PR closes #74

With this PR, types can now be imported via import cohere, { CohereService } from "cohere-ai";

This PR contains the following changes:

  1. Adding export for the CohereService interface.
  2. Adding the type for summarize() within the CohereService interface.
  3. Rearranging the order of operations in enum ENDPOINT and interface CohereService to match with how the functions in class Cohere was arranged to improve readability.
CLAassistant commented 1 year ago

CLA assistant check
All committers have signed the CLA.

billytrend-cohere commented 1 year ago

Hi, thanks for this contribution! We are about to switch this repository to be automatically generated from our api specs in #90 . This will mean it is always up to date with our SDK. As such we are closing existing PRs since they will likely not be compatible with the new changes.