pulumi / pulumi-ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unclear 404 error when model is unavailable

lukehoban opened this issue · comments

A user reports:

I get a 404 response no matter what I do:
image (3)

It appears this is the error reported when the OPENAI_MODEL is not available. This can happen for two reasons:

  1. The default is gpt-4, but that model is in preview, and users must have requested access to the model to be able to use this.
  2. Users may specify an invalid model name in OPENAI_MODEL.

In both cases, we should surface a more helpful error.