joschan21 / quill

Quill - A Modern SaaS-Platform Built With Next.js 13
1.86k stars 489 forks source link

Object literal may only specify known properties, and 'environment' does not exist in type 'PineconeConfiguration'.ts(2353) #94

Open jwalishjoseph opened 4 months ago

jwalishjoseph commented 4 months ago

\src\lib\pinecone.ts

image

image

anand-mukul commented 4 months ago

Use this :

import { Pinecone } from '@pinecone-database/pinecone';

export const getPineconeClient = async () => {
  const client = await new Pinecone(
    {
      apiKey: process.env.PINECONE_API_KEY!,
      environment: 'gcp-starter',
    }
  )

  return client
}