You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 20, 2026. It is now read-only.
Describe the problem
Since April 2024, new OpenAI accounts receive project secret keys that start with sk-proj-.
When I enter such a key in WristAssist 3.2.5 the app always returns: invalid_api_key
Current source (network/src/main/java/net/devemperor/wristassist/repository/NetworkRepository.kt) only sets the Authorization header, so the backend rejects the request.
Proposed fix
Add the missing header for project keys, e.g.:
val request = original.newBuilder()
.header("Authorization", "Bearer $apiKey")
.apply {
if (apiKey.startsWith("sk-proj-")) {
header("OpenAI-Project", projectId) // projectId can be stored next to the key in prefs
}
}
.build()
Describe the problem
Since April 2024, new OpenAI accounts receive project secret keys that start with
sk-proj-.When I enter such a key in WristAssist 3.2.5 the app always returns: invalid_api_key
Current source (
network/src/main/java/net/devemperor/wristassist/repository/NetworkRepository.kt) only sets theAuthorizationheader, so the backend rejects the request.Proposed fix
Add the missing header for project keys, e.g.: