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
I'm working on an integration of multiple AI services. Some are compatible with Claude's SDK, some with OpenAI's SDK, and some - like Mistral AI - have their own SDK.
For reasons I don't understand, this SDK coerces snake_case properties to camelCase. I suspect whoever made that decision thought "this will make the SDK look nicer" and didn't realize they were breaking compatibility with code written against conventional SDKs.
My two questions are:
why?
can we fix it?
My suggestions are:
release a major version where the camelCase garbage is scrapped
add a parameter to make the SDK follow conventions
Someone could make the argument "this is a different SDK, and it can have its own conventions". My counterargument here is that it literally does follow the standard conventions if we just simply get rid of this camelCase thing; code written to work with OpenAI's SDK will suddenly work with Mistral's SDK without any changes.
The text was updated successfully, but these errors were encountered:
KernelDeimos
changed the title
Why does the SDK convert things to snakeCase?
Why does the SDK convert things to camelCase?
Feb 7, 2025
I'm working on an integration of multiple AI services. Some are compatible with Claude's SDK, some with OpenAI's SDK, and some - like Mistral AI - have their own SDK.
For reasons I don't understand, this SDK coerces
snake_case
properties tocamelCase
. I suspect whoever made that decision thought "this will make the SDK look nicer" and didn't realize they were breaking compatibility with code written against conventional SDKs.My two questions are:
My suggestions are:
camelCase
garbage is scrappedSomeone could make the argument "this is a different SDK, and it can have its own conventions". My counterargument here is that it literally does follow the standard conventions if we just simply get rid of this
camelCase
thing; code written to work with OpenAI's SDK will suddenly work with Mistral's SDK without any changes.The text was updated successfully, but these errors were encountered: