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 9 months ago • 2 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

What happens when you do fabric -L?

ksylvan avatar Mar 19 '25 19:03 ksylvan

What happens when you do fabric -L?

LOL before I scrolled down to see your reply, I was preparing to ask the EXACT same thing.

bledburn avatar Mar 29 '25 02:03 bledburn

Old issue and no response from the original poster @bartmeuris - closing this

ksylvan avatar Jul 06 '25 10:07 ksylvan