prompty icon indicating copy to clipboard operation
prompty copied to clipboard

Can't use VS Code extension with an openai configuration

Open pamelafox opened this issue 10 months ago • 1 comments

I put this in my settings:

"prompty.modelConfigurations": [
    {
        "name": "gpt-3.5-turbo",
        "type": "openai",
        "api_key":"${env:OPENAI_API_KEY}"
    }
],

Put this in a .env: OPENAI_API_KEY=sk...

And then I tried to run this prompt: https://github.com/Azure-Samples/azure-search-openai-demo/blob/main/app/backend/approaches/prompts/ask_answer_question.prompty

I got this error:

025-01-15 09:13:53.214 [info] Loading /Users/pamelafox/azure-search-openai-demo/app/backend/approaches/prompts/.env 2025-01-15 09:13:53.214 [error] Error: undefined type isn't supported. Call Stack: Error: undefined type isn't supported. at /Users/pamelafox/.vscode/extensions/ms-toolsai.prompty-0.1.2024092301/packages/core/out/extension.js:95143:23

pamelafox avatar Jan 15 '25 17:01 pamelafox