We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 39f9b83 commit 362e5fbCopy full SHA for 362e5fb
admin/src/components/CMEditView/RightLinksCompo/index.js
@@ -131,7 +131,7 @@ const RightLinksCompo = () => {
131
completionAPI
132
.create({ model, messages, temperature, maxTokens })
133
.then((data) => {
134
- setCompletion(data?.choices[0]?.text.trim());
+ setCompletion(data?.choices[0]?.message?.content.trim());
135
setFinishReason(data?.choices[0]?.finish_reason);
136
})
137
.finally(() => {
0 commit comments