client icon indicating copy to clipboard operation
client copied to clipboard

Set default index of 0 if not defined by API server (e.g. OpenRouter)

Open giltotherescue opened this issue 1 year ago • 1 comments

What:

  • [x] Bug Fix
  • [ ] New Feature

Description:

By setting a different baseUri, this package is fully compatible with OpenRouter.ai, a service that supports many different AI models through a common interface (OpenAI's).

However, OpenRouter does not provide an "index" property in its responses, which causes the response to fail. Setting a default index of 0 fixes this problem.

giltotherescue avatar Mar 25 '24 20:03 giltotherescue

Sorry for delay. Marking as draft due to conflicts.

iBotPeaches avatar Apr 09 '25 02:04 iBotPeaches

Something went odd with the rebase/merge here.

iBotPeaches avatar May 19 '25 23:05 iBotPeaches

I believe this has been addressed in other ways in newer versions, so I am closing this PR. Thanks

giltotherescue avatar May 19 '25 23:05 giltotherescue