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 摘要。