feature request
# support
u
add timestamp to custom-llm request messages payload current messages array doesn't have timestamp, we want to it to have timestamp per each message so that we are able to insert system message to the right position
v
@8Ds To add a timestamp to each custom LLM request message in the payload, you'll need to modify the code that generates the messages array. Each message object should include a new property for the timestamp, which can be set to the current time when the message is created. Here's a general approach you can follow: 1. Determine the format of the timestamp you want to use (e.g., ISO 8601, Unix timestamp, etc.). 2. Update the message creation logic to include the current timestamp when a new message is generated. 3. Ensure that the timestamp is included in the payload that is sent with each LLM request. If you need assistance with the specific implementation or if you have a particular system or codebase you're working with, please provide more details or ask for support. If you're looking to implement this feature and need help with the code, please share the relevant code snippet or context, and I can guide you through the process.
You can continue this conversation by mentioning me in the message.
Got it. Tagging @User for additional help.
s
Hey @8Ds please raise the request over here https://vapi.canny.io
done, this is a small work from your end, but very beneficial for us.