kopia lustrzana https://github.com/transitive-bullshit/chatgpt-api
old-agentic-v1^2
rodzic
0958a8e7c6
commit
1cbe4a6683
|
@ -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) {
|
||||||
|
|
Ładowanie…
Reference in New Issue