dustinblackman/oatmeal

Default openai url: "Error: OpenAPI health check failed"

Closed this issue · 3 comments

I’m configuring oatmeat via env variables in order to not leak my token through the CLI arguments (not sure if this is relevant for the issue at hand though).

For convenience, I have a script looking like this:

#!/bin/bash

export OATMEAL_BACKEND=openai
export OATMEAL_OPENAI_TOKEN=<redacted>
export OATMEAL_MODEL=gpt-4

oatmeal

The variables appear to be properly accounted for since I can see the following:
image

However, I have no idea of why the health check is failing.

Accessing https://status.openai.com/api/v2/status.json is showing "All Systems Operational", and the error itself does not include much details.

Any way to extract additional information from oatmeal? I don’t see anything like log or tracing in the dependencies of the project, so I assume there is no way to make it write into some log file.

PS: cool project by the way.

OpenAI broke the API index path which now 404s... that's nice. https://api.openai.com

I'll have to consider rewriting that to be better.

As for logging, I have it on my TODOs to output to a temp file if enabled. :)

I'll get this patched up. Thanks for the report!

Oh I see, haha. Thank you! 🙏

Fixed in v0.7.0. Thanks!