StanfordBDHG / HealthGPT

Query your Apple Health data with natural language 💬 🩺
MIT License
1.65k stars 150 forks source link

Error Querying OpenAI Api #30

Closed youngfolks closed 10 months ago

youngfolks commented 1 year ago

Description

I'm receiving the following error in the console after submitting a message:

Error querying OpenAI API: keyNotFound(CodingKeys(stringValue: "id", intValue: nil), Swift.DecodingError.Context(codingPath: [], debugDescription: "No value associated with key CodingKeys(stringValue: \"id\", intValue: nil) (\"id\").", underlyingError: nil))

I have tried adding the api key both on the welcome screen in the app as well as in the OpenAI-info in supporting files.

Reproduction

Download the respository. Run the app. Insert the API key from your OpenAPI account. Submit a message. Check console for error.

Expected behavior

Message should return, but there is no connection to openAI due to the error.

Additional context

No response

Code of Conduct

PSchmiedmayer commented 1 year ago

Thank you for the bug report. We will investigate this after we have addressed https://github.com/StanfordBDHG/HealthGPT/issues/28 which might resolve your issue.

iamazhar commented 12 months ago

Any update on this issue? Not usable because of this at the moment.

PSchmiedmayer commented 12 months ago

@iamazhar Thank you for checking back on the issue; you can follow the progress of the PR here: https://github.com/StanfordBDHG/HealthGPT/pull/31