fabric icon indicating copy to clipboard operation
fabric copied to clipboard

[Bug]: after setting up OpenAI, get the error `invalid model ID`

Open bartmeuris opened this issue 2 weeks ago • 0 comments

What happened?

  • set up fabric with fabric -S, added OpenAI api key, selected default model (tried multiple including o1-mini, gpt-4o-mini, gpt-4-turbo, gpt-4, ...).
  • run the example command from the README.md: fabric -u https://github.com/danielmiessler/fabric/ -p analyze_claims

Then I get the following output:

$ fabric -u https://github.com/danielmiessler/fabric/ -p analyze_claims
error, status code: 400, status: 400 Bad Request, message: invalid model ID
$

Fabric config is the following:

$ cat ~/.config/fabric/.env
DEFAULT_VENDOR=OpenAI
DEFAULT_MODEL=gpt-4-turbo
PATTERNS_LOADER_GIT_REPO_URL=https://github.com/danielmiessler/fabric.git
PATTERNS_LOADER_GIT_REPO_PATTERNS_FOLDER=patterns
OPENAI_API_KEY=<redacted>
OPENAI_API_BASE_URL=https://api.openai.com/v1

Fabric version (darwin-arm64 version):

$ fabric --version
v1.4.131

Version check

  • [x] Yes I was.

Relevant log output


Relevant screenshots (optional)

No response

bartmeuris avatar Feb 12 '25 13:02 bartmeuris