old-agentic-v1^2
Travis Fischer 2023-06-16 00:47:13 -07:00
rodzic 0958a8e7c6
commit 1cbe4a6683
3 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -237,16 +237,16 @@ export abstract class BaseChatCompletion<
// console.log('<<< completion', { messages, functions }) // console.log('<<< completion', { messages, functions })
const completion = await this._createChatCompletion(messages, functions) const completion = await this._createChatCompletion(messages, functions)
const message = completion.message
// console.log('>>> completion', completion.message) // console.log('>>> completion', completion.message)
this._logger.info( this._logger.info(
completion.message, message,
`<<< Task createChatCompletion "${this.nameForHuman}"` `<<< Task createChatCompletion "${this.nameForHuman}"`
) )
ctx.metadata.completion = completion ctx.metadata.completion = completion
const message = completion.message
if (message.function_call) { if (message.function_call && !message.content) {
const functionCall = message.function_call const functionCall = message.function_call
if (!isUsingTools) { if (!isUsingTools) {