hts/packages/isdk/tests/snapshots/cohere.ts

47 lines
1.3 KiB
TypeScript

export const cohereChatChunks = [
{ text: ' Hello', is_finished: false, event_type: 'text-generation' },
{ text: ',', is_finished: false, event_type: 'text-generation' },
{ text: ' world', is_finished: false, event_type: 'text-generation' },
{ text: '.', is_finished: false, event_type: 'text-generation' },
{ text: ' ', is_finished: false, event_type: 'text-generation' },
{
is_finished: true,
event_type: 'text-generation',
finish_reason: 'COMPLETE',
response: {
id: 'a15fdf82-758e-4d35-a520-40fbb7308631',
generations: [
{
id: '9700d8ef-a8e5-4eb8-8288-3f0e0a1daed5',
text: ' Hello, world. ',
finish_reason: 'COMPLETE',
},
],
prompt: 'Hello',
},
},
];
export const cohereChunks = [
{ text: ' Hello', is_finished: false },
{ text: ',', is_finished: false },
{ text: ' world', is_finished: false },
{ text: '.', is_finished: false },
{ text: ' ', is_finished: false },
{
is_finished: true,
finish_reason: 'COMPLETE',
response: {
id: 'a15fdf82-758e-4d35-a520-40fbb7308631',
generations: [
{
id: '9700d8ef-a8e5-4eb8-8288-3f0e0a1daed5',
text: ' Hello, world. ',
finish_reason: 'COMPLETE',
},
],
prompt: 'Hello',
},
},
];