semantic-kernel icon indicating copy to clipboard operation
semantic-kernel copied to clipboard

.Net: 0613 models tools not recognized

Open rcoccia opened this issue 1 year ago • 12 comments

I sent a completion call with ToolCallBehavior set everything is fine with a 1106 model but when I switch to a 0613 model (gpt4-8k) I receive the following error Content: { "error": { "message": "Unrecognized request arguments supplied: tool_choice, tools", "type": "invalid_request_error", "param": null, "code": null } }

1106 understand "tools" and "functions" 0613 knows only "functions" SK seems support only "tools" at GA (ChatCompletionsOptions has the Function fields leveraged up to RC but now ToolCallBehavior implementations use only the Tools field despite to the model type)

understood that function is deprecated against tools but this is really a breaking change Unfortunately I'm forced to stay on the 0613 model.. Any idea?

rcoccia avatar Dec 22 '23 10:12 rcoccia

Are you using OpenAI or Azure OpenAI? IIRC, the latter has such an issue with gpt4 0603 that the corresponding model on OpenAI didn't have, and that also is fine with gpt-3.5-turbo 0603 on both services.

stephentoub avatar Dec 22 '23 13:12 stephentoub

i have the same issue that I use AOAI gpt-4-32k 0603 model. any workaround for this rather than using rc3?

kenakamu avatar Dec 22 '23 16:12 kenakamu

Are you using OpenAI or Azure OpenAI? IIRC, the latter has such an issue with gpt4 0603 that the corresponding model on OpenAI didn't have, and that also is fine with gpt-3.5-turbo 0603 on both services.

I use aoai in Sweden region

rcoccia avatar Dec 22 '23 18:12 rcoccia

@trrwilson, multiple folks hitting tools not working with gpt-4 on Azure OpenAI.

stephentoub avatar Dec 22 '23 18:12 stephentoub

I can confirm the preview of gpt-4 in Azure Open AI (1106-Preview) works well (but 0603 did not, 32k or not)

kboom avatar Dec 25 '23 07:12 kboom

any update on this? Is this more AOAI issue?

kenakamu avatar Jan 05 '24 01:01 kenakamu

Is this more AOAI issue?

Yes

stephentoub avatar Jan 05 '24 01:01 stephentoub

Then there is nothing we can do in SK side.. shall we close the issue?

kenakamu avatar Jan 05 '24 04:01 kenakamu

I think the only thing that could be done on the SK side would be providing some option that would cause it to fallback to using the obsoleted functions support instead of the recommended tools support. It'd be much better if Azure OpenAI fixed this in the model, though.

stephentoub avatar Jan 08 '24 04:01 stephentoub

I can confirm the preview of gpt-4 in Azure Open AI (1106-Preview) works well (but 0603 did not, 32k or not)

How did you get the GPT-4 preview model in Azure OpenAI? I cannot see it in the list...

ChristianWeyer avatar Jan 16 '24 08:01 ChristianWeyer

Each model has different regional availability. https://learn.microsoft.com/en-us/azure/ai-services/openai/concepts/models#gpt-4-and-gpt-4-turbo-preview-model-availability

kenakamu avatar Jan 17 '24 00:01 kenakamu

This issue is stale because it has been open for 90 days with no activity.

github-actions[bot] avatar May 01 '24 01:05 github-actions[bot]

This issue was closed because it has been inactive for 14 days since being marked as stale.

github-actions[bot] avatar May 29 '24 01:05 github-actions[bot]