Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use VS Code extension with an openai configuration #167

Open
pamelafox opened this issue Jan 15, 2025 · 1 comment
Open

Can't use VS Code extension with an openai configuration #167

pamelafox opened this issue Jan 15, 2025 · 1 comment
Labels
extension Related to the Prompty VS Code Extension

Comments

@pamelafox
Copy link
Member

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

@sethjuarez sethjuarez added the extension Related to the Prompty VS Code Extension label Jan 15, 2025
@gregschwartz
Copy link

Seeing same problem. It would really help have more detailed setup instructions than
https://prompty.ai/docs/getting-started/setup
https://prompty.ai/docs/getting-started/first-prompty

Also, I think the vast majority of users will be using OpenAI not Azure, so it'd be good to switch defaults 😇 I know that's not what you want to hear, since you want people to use Azure!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extension Related to the Prompty VS Code Extension
Projects
None yet
Development

No branches or pull requests

3 participants