You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OpenAI and HF api seem to have diverged on chat_completion response_format. That of the OpenAI has a type attribute which takes one of three values text, json_object (free-form JSON generation which isn't in TGI yet) and json_schema, and for the last one it has another json_schema attribute which itself contains name, schema, description and strict attributes.
On the other hand, HF's response_format: ChatCompletionInputGrammarTypecontainstype and value attributes.
This might break the OpenAI api usability on HF models. Could we have compatibility between these two on this matter? Or does it need probably breaking changes in TGI and huggingface_hub?
Hi there!
OpenAI and HF api seem to have diverged on chat_completion
response_format
. That of the OpenAI has atype
attribute which takes one of three valuestext
,json_object
(free-form JSON generation which isn't in TGI yet) andjson_schema
, and for the last one it has anotherjson_schema
attribute which itself containsname
,schema
,description
andstrict
attributes.On the other hand, HF's
response_format: ChatCompletionInputGrammarType
containstype
andvalue
attributes.This might break the OpenAI api usability on HF models. Could we have compatibility between these two on this matter? Or does it need probably breaking changes in TGI and huggingface_hub?
@Wauplin
The text was updated successfully, but these errors were encountered: