Rahul Bhatewara
RRunPod
•Created by Rahul Bhatewara on 5/13/2025 in #⚡|serverless
Serverless Text Embedding - 400
hi Jason. finally, got it working with endpoint passing this json: {"input":{"model":"...", "input": "..."}}. The OpenAI SDK method kept failing after multiple T&E, it kept giving "invalid API" even with a new Key. Thanks for your help!
17 replies
RRunPod
•Created by Rahul Bhatewara on 5/13/2025 in #⚡|serverless
Serverless Text Embedding - 400
Tx Jason. The env var RUNPOD_API_KEY is set properly and getting read into the code. I believe the issue could be because I'm running an embedding model vs. chatbot and the input format : {'prompt':'Hello World'} isn't what the endpoint expects. I've looked at the runpod documentation to no avail. Any more thoughts?
17 replies
RRunPod
•Created by Rahul Bhatewara on 5/13/2025 in #⚡|serverless
Serverless Text Embedding - 400
With runpod.endpoint
---------------------
Job output: {'code': 400, 'message': "Invalid input: {'delayTime': 17100, 'id': '31304f73-9a33-4c1d-865d-bad4496705b5-e1', 'input': {'prompt': 'Hello, World!'}, 'status': 'IN_PROGRESS'}", 'object': 'error', 'param': None, 'type': 'BadRequestError'}
With OpenAI SDK:
openai.AuthenticationError: Error code: 401 - {'error': {'message': 'Incorrect API key provided: rpa_1KJN**bk9q. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}
17 replies