joschan21 / quill

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

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

Open jwalishjoseph opened 7 months ago

jwalishjoseph commented 7 months ago

\src\lib\pinecone.ts

image

image

anand-mukul commented 7 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
}