mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-04-20 01:26:47 +00:00
Removed response format option
This commit is contained in:
parent
9bacb71539
commit
c1c54576e4
3 changed files with 1 additions and 5 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
|
@ -209,8 +209,6 @@ ${chunk.changes
|
||||||
try {
|
try {
|
||||||
const response = yield openai.chat.completions.create(
|
const response = yield openai.chat.completions.create(
|
||||||
Object.assign(Object.assign({}, queryConfig), {
|
Object.assign(Object.assign({}, queryConfig), {
|
||||||
// return JSON if the model supports it:
|
|
||||||
response_format: { type: "json_object" },
|
|
||||||
messages: [
|
messages: [
|
||||||
{
|
{
|
||||||
role: "user",
|
role: "user",
|
||||||
|
|
2
dist/index.js.map
vendored
2
dist/index.js.map
vendored
File diff suppressed because one or more lines are too long
|
@ -122,8 +122,6 @@ async function getAIResponse(prompt: string): Promise<Array<{
|
||||||
try {
|
try {
|
||||||
const response = await openai.chat.completions.create({
|
const response = await openai.chat.completions.create({
|
||||||
...queryConfig,
|
...queryConfig,
|
||||||
// return JSON if the model supports it:
|
|
||||||
response_format: { type: "json_object" },
|
|
||||||
messages: [
|
messages: [
|
||||||
{
|
{
|
||||||
role: "user",
|
role: "user",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue