mirror of
https://github.com/freeedcom/ai-codereviewer.git
synced 2025-04-20 01:26:47 +00:00
chore(core): changed model to support json
This commit is contained in:
parent
823dc87f8d
commit
9d4daee5e0
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,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-4o"
|
||||
...(OPENAI_API_MODEL === "gpt-4-turbo"
|
||||
? { response_format: { type: "json_object" } }
|
||||
: {}),
|
||||
messages: [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue