I'm using a text embedding serverless endpoint to run an instance of "sentence-transformers/all-MiniLM-L6-v2". I keep getting a bad request 400 error. The old code I had (using openAI SDK) stopped working and I've tried to configure based on new documentation without any luck. Would greatly appreciate any help!
New --------- runpod.api_key = os.getenv("RUNPOD_API_KEY") cleaned_text = {"prompt": "Hello, World!"} endpoint = runpod.Endpoint("i10xxxxxxxxvp") run_request = endpoint.run("Your text to embed here")
Old (worked before) ------- cleaned_text = 'This is clean text.'
Initialize OpenAI client with RunPod configuration