standardize auto generated ids to have 32 characters
Author: narengogiCreated Apr 24, 2025Updated Sep 28, 2026
Labelsbugtriage
What Happened?
In cases like vertex, the tool calls do not have any ids, so portkey generated ids for them. When a user tried to use one such id to azure in a subsequent call, they got this error
'messages[2].tool_calls[0].id': string too long. Expected a string with maximum length 40, but got a string with length 44 instead.
Becasuse tool call id is: portkey-6aa6db90-1b84-4155-9f32-f658c97d6b1b and its 44 chars longref: https://discord.com/channels/1143393887742861333/1143402158394454016/1364908774401249371
What Should Have Happened?
No response
Relevant Code Snippet
No response
Your Twitter/LinkedIn
No response
Source: Portkey-AI/gateway