mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-04-21 01:56:47 +00:00
Update main.ts
This commit is contained in:
parent
b880c37060
commit
0e3773963a
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ async function getAIResponse(prompt: string): Promise<Array<{
|
|||
const response = await openai.chat.completions.create({
|
||||
...queryConfig,
|
||||
// return JSON if the model supports it:
|
||||
...(OPENAI_API_MODEL === "gpt-4-1106-preview"
|
||||
...(OPENAI_API_MODEL === "gpt-3.5-turbo-16k"
|
||||
? { response_format: { type: "json_object" } }
|
||||
: {}),
|
||||
messages: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue