I’m a little confused, and sorry if this has been asked a ton, I couldn’t find it while searching. Is this like a security feature? Are we not able to console log the actual responses for security reasons? Or am I receiving other people’s API responses? I’m getting random arrays of messages about like covid and stuff, it looks like someone is training/pre-training a model to summarize.
Here’s what logged for the object before sending it to gpt-3.5-turbo:
{ role: 'user', content: 'Hello!' }
Here’s what logged from the OpenAI response.
[
{
role: 'system',
content: 'Original Text: "The COVID-19 pandemic has had a devastating impact on the global economy, leading to widespread business closures and job losses. Governments around the world have implemented various measures to mitigate the economic damage, including stimulus packages and financial assistance programs. However, the road to recovery remains uncertain as the virus continues to spread and new variants emerge. Businesses are adapting to new ways of operating, with a focus on remote work and digital transformation. The pandemic has also highlighted the importance of healthcare and the need for investment in medical research and infrastructure. As vaccinations roll out worldwide, there is hope for a gradual recovery, but the long-term effects of the pandemic on the economy are yet to be fully understood."\n' +
'\n' +
'Improved Summary: The COVID-19 pandemic has severely impacted the global economy, resulting in business closures and job losses. Governments worldwide have implemented measures to support economic recovery, but uncertainties remain as the virus spreads. Businesses are adapting through remote work and digital transformation. The pandemic highlights the importance of healthcare and investment in medical research. Vaccinations offer hope for gradual recovery, but the long-term economic effects are still unclear.'
},
{ role: 'user', content: 'Hello!' }
]
Here’s what got sent to the frontend (Our service is called willow):
willowToServer: {"title":"New Chat","chatId":null,"messages":[{"role":"user","content":"Hello!"}],"chatType":"willow","userId":"6518c9fd1d7014190fc8b0ad"}
{
title: 'New Chat',
chatId: null,
messages: [ { role: 'user', content: 'Hello!' } ],
chatType: 'willow',
userId: '6518c9fd1d7014190fc8b0ad'
}
Message: Hello!
{
title: 'New Chat',
userId: new ObjectId("6518c9fd1d7014190fc8b0ad"),
messages: [
{
role: 'user',
content: 'Hello!',
name: new ObjectId("6518c9fd1d7014190fc8b0ad"),
embedding: []
}
],
chatType: 'willow',
currentContext: ''
}
{
title: 'New Chat',
userId: new ObjectId("6518c9fd1d7014190fc8b0ad"),
messages: [
{
role: 'user',
content: 'Hello!',
function_call: null,
name: new ObjectId("6518c9fd1d7014190fc8b0ad"),
embedding: [],
_id: new ObjectId("6518ec72720122b8e293fc73")
}
],
chatType: 'willow',
currentContext: '',
_id: new ObjectId("6518ec72720122b8e293fc72")
}
Then I got some about the Industrial Revolution lol:
encodedText 0 undefined
0
encodedText Hello 9906 1 9906
1
encodedText Original Text: "The industrial revolution, which occurred in the late 18th and early 19th centuries, was a period of significant advancements in manufacturing, agriculture, and technology. It led to the transformation of society and the shift from an agrarian economy to an industrial one. The revolution began in Britain and then spread to Europe and North America. It was characterized by the mechanization of production processes, the development of new machines and technologies, and the growth of factories. This resulted in increased productivity, urbanization, and a rise in population. The industrial revolution also had wide-ranging social and economic impacts. It created a new class system with industrial capitalists, workers, and a growing middle class. It led to the improvement of transportation and communication systems, as well as the emergence of new industries and the expansion of trade. Overall, the industrial revolution had a profound and lasting effect on society and laid the foundation for modern industrialization."
Improved Summary: The industrial revolution occurred in the late 18th and early 19th centuries, bringing significant advancements in manufacturing, agriculture, and technology. It led to a transformation from an agrarian to an industrial economy, beginning in Britain and spreading to Europe and North America. This revolution involved mechanization, new technologies, and the growth of factories, resulting in increased productivity, urbanization, and population growth. It also created a new class system, improved transportation and communication, and promoted the emergence of new industries and expanded trade. The industrial revolution had a lasting impact on society and paved the way for modern industrialization. 18902,2991,25,330,791,13076,14110,11,902,10222,304,279,3389,220,972,339,323,4216,220,777,339,24552,11,574,264,4261,315,5199,83787,304,15266,11,30029,11,323,5557,13,1102,6197,311,279,18475,315,8396,323,279,6541,505,459,40574,8997,8752,311,459,13076,832,13,578,14110,6137,304,13527,323,1243,9041,311,4606,323,4892,5270,13,1102,574,32971,555,279,7852,2065,315,5788,11618,11,279,4500,315,502,12933,323,14645,11,323,279,6650,315,35159,13,1115,19543,304,7319,26206,11,16036,2065,11,323,264,10205,304,7187,13,578,13076,14110,1101,1047,7029,82105,3674,323,7100,25949,13,1102,3549,264,502,538,1887,449,13076,87408,11,7487,11,323,264,7982,6278,538,13,1102,6197,311,279,16048,315,18386,323,10758,6067,11,439,1664,439,279,49179,315,502,19647,323,279,14800,315,6696,13,28993,11,279,13076,14110,1047,264,28254,323,29869,2515,389,8396,323,17551,279,16665,369,6617,13076,2065,2266,82210,22241,25,578,13076,14110,10222,304,279,3389,220,972,339,323,4216,220,777,339,24552,11,12967,5199,83787,304,15266,11,30029,11,323,5557,13,1102,6197,311,264,18475,505,459,40574,8997,311,459,13076,8752,11,7314,304,13527,323,31135,311,4606,323,4892,5270,13,1115,14110,6532,7852,2065,11,502,14645,11,323,279,6650,315,35159,11,13239,304,7319,26206,11,16036,2065,11,323,7187,6650,13,1102,1101,3549,264,502,538,1887,11,13241,18386,323,10758,11,323,30026,279,49179,315,502,19647,323,17626,6696,13,578,13076,14110,1047,264,29869,5536,389,8396,323,63675,279,1648,369,6617,13076,2065,13 313 18902
313
[
{
role: 'system',
content: 'Original Text: "The industrial revolution, which occurred in the late 18th and early 19th centuries, was a period of significant advancements in manufacturing, agriculture, and technology. It led to the transformation of society and the shift from an agrarian economy to an industrial one. The revolution began in Britain and then spread to Europe and North America. It was characterized by the mechanization of production processes, the development of new machines and technologies, and the growth of factories. This resulted in increased productivity, urbanization, and a rise in population. The industrial revolution also had wide-ranging social and economic impacts. It created a new class system with industrial capitalists, workers, and a growing middle class. It led to the improvement of transportation and communication systems, as well as the emergence of new industries and the expansion of trade. Overall, the industrial revolution had a profound and lasting effect on society and laid the foundation for modern industrialization."\n' +
'\n' +
'Improved Summary: The industrial revolution occurred in the late 18th and early 19th centuries, bringing significant advancements in manufacturing, agriculture, and technology. It led to a transformation from an agrarian to an industrial economy, beginning in Britain and spreading to Europe and North America. This revolution involved mechanization, new technologies, and the growth of factories, resulting in increased productivity, urbanization, and population growth. It also created a new class system, improved transportation and communication, and promoted the emergence of new industries and expanded trade. The industrial revolution had a lasting impact on society and paved the way for modern industrialization.'
},
{ role: 'user', content: 'Hello' }
]
A little strange. It’s happening on like every new chat.