This feature sends the user's profile data to GPT along with any prompts, so that we can ensure that there can be personable conversations.
To put it simply, this adds some more information to the system's role when sending it to GPT, now including that it has access to the user's profile information. This is done by mapping the data retrieved from Firebase and turning it into a string, sending it along with the rest of its role. It will not outright respond to this information, but it will have access to it if it ever wishes to use any aspects of it.
This feature sends the user's profile data to GPT along with any prompts, so that we can ensure that there can be personable conversations.
To put it simply, this adds some more information to the system's role when sending it to GPT, now including that it has access to the user's profile information. This is done by mapping the data retrieved from Firebase and turning it into a string, sending it along with the rest of its role. It will not outright respond to this information, but it will have access to it if it ever wishes to use any aspects of it.