Float Parameter Misinterpreted as Single in Function Invocation #325
-
Hi @StephenHodgson , I recently started using the OpenAI Chat Completions package, and while things are going well overall, I’m encountering an issue with one of my functions. The function has 5 parameters, one of which is a float. It seems that the framework incorrectly interprets this float value as single, causing the function invocation to fail when calling: I traced the issue to the following line in Runtime/Common/Function.cs (line 477): Here’s what happens:
Since the parameter is defined as float in the function signature, this mismatch causes the invocation to fail. Could you please take a look at this logic and see if there’s a fix? Thank you! Exception I get in function: Runtime/Common/Function.cs (line 392):
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 14 replies
-
Can you show me how you specified your function? |
Beta Was this translation helpful? Give feedback.
This should have fixed the signature, just be sure that it actually saves and recompiles to apply the fix.