Getting an error while connecting : **const pinecone = new Pinecone({ apiKey: '' });** ``` [ERROR]
Getting an error while connecting : const pinecone = new Pinecone({ apiKey: '' });
[ERROR] Error compiling schema, function code: const schema2 = scope.schema[2];const schema1 = scope.schema[1]......
X [ERROR] Error in fetch handler: EvalError: Code generation from strings disallowed for this contexteval or new Function cannot be used in Workers for security reasons. Based on the error message I assume it's trying to do some sort of schema validation which often uses new Function.
p is just random dataPOST http://workers-binding.ai/run?version=3 - Canceled @ 24/05/2024, 06:28:16
base version of the model. Depending on what you're using on Azure it maybe be more accurate (I believe above base there is small, medium, and large, all of which will be more accurate)TypeError: Cannot read properties of undefined (reading 'AI'). This is my Env interface:const env = [...] and running AI inside a function with function exampleFunction(env: Env) but it also didn't work.
interface Env {
AI: any;
}
const env = (globalThis as any).env as Env