Function_call type problem

Property ‘function_call’ does not exist on type ‘ChatCompletionRequestMessage’.

i can’t understand why i’m getting this problem. Function_call i’ts assigned to what kind of type?

Thanks in advance to anyone who can help.

Hi! Can you share your code? Which library are you using?

One thing that comes to mind is that the node library was always way behind api functionality. I don’t know if that’s still an issue - we’ve been using axios for quite a while now.

Hello! I’m indeed using node. So this functionality is’nt yet available?
The imports i’m using:

import { ChatCompletionRequestMessage } from “openai”
import {Configuration, OpenAIApi} from “openai”

If the problem is updating functionality on the node, how long should it take?
Thank you so much.

Please check your package.json and make sure you are using recent versions(>= 4) of the openai module, latest version is 4.12.4.

1 Like