pipe(
client({
stream: false,
system: systemPrompt(company.name.primary),
prompt: prompt.description.text,
model: 'llama3'
}),
Effect.repeat({
until: () => true
}),
Effect.andThen(({ response, eval_duration }) => ({
text: response,
completionTime: Duration.toMillis(Duration.seconds(eval_duration / 1_000_000_000))
}))
)
pipe(
client({
stream: false,
system: systemPrompt(company.name.primary),
prompt: prompt.description.text,
model: 'llama3'
}),
Effect.repeat({
until: () => true
}),
Effect.andThen(({ response, eval_duration }) => ({
text: response,
completionTime: Duration.toMillis(Duration.seconds(eval_duration / 1_000_000_000))
}))
)