abetlen / abetlen/llama-cpp-python

Please add response_format to create_completion

未關閉
#1,478 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
enhancement
主要語言
Python
星號
10.6k
分支
1.4k
PR 合併指標
PR 指標待擷取

描述

**Is your feature request related to a problem? Please describe.**
The function create_chat_completion has an option for a response_format parameter which can be used to specify things like JSON output with an optional schema. This is great. However, this option is completely missing from create_completion.

Problem is, what am I supposed to do if I need a chat format that isn't supported by create_chat_completion? I don't mind manually creating the prompt in these cases, but not being able to ensure JSON output is a serious limitation.

**Describe the solution you'd like**
Support the response_format parameter in create_completion the same as it is in create_chat_completion.

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。