0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

404 Invalid URL (POST /v1/chat/completions/)が直らない

Posted at

正直こんなことで記事にして良いか迷いましたが、自戒を込めて記事にします。

問題

ReactNative/TypeScriptでOpenAIのAPIを使用した際に、404 Invalid URL (POST /v1/chat/completions/)が直らない問題に直面しました。

試したことは以下です。

それでもエラーが直らず、四苦八苦していました。

が、まさかのBillが0だったことが原因でした。

なぜこんなことが起きたか

クレジット購入日は2023年11月(Dec 2024は原因が判明後買い足したものです)。

image.png

しかしなんと、一年たったらExpiredされていたのです(Dec 01, 2024は原因が以下同文)。

image(1).png

え〜、一年でなくなるなんて書いてなくね〜?PricingのFAQ確認したよ〜?

と思ったが束の間、ポリシーに書いてありました。しかも太字で。(さすが訴訟大国アメリカ)

All sales of Services, including sales of prepaid Services, are final. Service Credits are not refundable and expire one year after the date of purchase or issuance if not used, unless otherwise specified at the time of purchase. - (https://openai.com/policies/service-credit-terms/)

(訳)プリペイド・サービスの販売を含め、本サービスの販売はすべて最終的なものとなります。 サービスクレジットの払い戻しはできず、購入時に特に指定がない限り、未使用の場合は購入日または発行日から1年後に失効します。

こんなこともあるので、コードは絶対合ってる自信があるのに404が出る方、念の為Billも確認してみてくださいね。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?