-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Resolved the API key validation error caused by the unavailabili…
…ty of the OpenAI subscription API (/v1/dashboard/billing/subscription).
- Loading branch information
Showing
5 changed files
with
33 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 26 additions & 0 deletions
26
app/src/main/java/com/crossbowffs/quotelock/data/modules/openai/chat/OpenAIModelsResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
package com.crossbowffs.quotelock.data.modules.openai.chat | ||
|
||
import kotlinx.serialization.SerialName | ||
import kotlinx.serialization.Serializable | ||
|
||
@Serializable | ||
data class OpenAIModelsResponse( | ||
@SerialName("object") | ||
val objectX: String, | ||
@SerialName("data") | ||
val dataX: List<OpenAIModelData>, | ||
) | ||
|
||
@Serializable | ||
data class OpenAIModelData( | ||
@SerialName("id") | ||
val id: String, | ||
@SerialName("object") | ||
val objectX: String, | ||
@SerialName("created") | ||
val created: Long, | ||
@SerialName("owned_by") | ||
val ownedBy: String, | ||
@SerialName("root") | ||
val root: String, | ||
) |
14 changes: 0 additions & 14 deletions
14
...ain/java/com/crossbowffs/quotelock/data/modules/openai/chat/OpenAISubscriptionResponse.kt
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
app/src/main/java/com/crossbowffs/quotelock/data/modules/openai/chat/OpenAIUsageResponse.kt
This file was deleted.
Oops, something went wrong.