feat: upgrade model
This commit is contained in:
parent
ab39e5cc69
commit
463bd96ff8
|
|
@ -27,7 +27,7 @@ export class CopilotController {
|
|||
req?.body?.variables?.data?.metadata?.requestType ===
|
||||
'TextareaCompletion'
|
||||
? 'gpt-4o-mini'
|
||||
: 'gpt-4o-2024-08-06',
|
||||
: 'gpt-4.1',
|
||||
}),
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -21,13 +21,13 @@ const toolNode = new ToolNode(tools);
|
|||
|
||||
const model = new ChatOpenAI({
|
||||
apiKey: process.env.OPENAI_API_KEY || 'sk-proj-',
|
||||
model: 'gpt-4o-2024-08-06',
|
||||
model: 'gpt-4.1',
|
||||
temperature: 0.7,
|
||||
});
|
||||
|
||||
const dalle = new DallEAPIWrapper({
|
||||
apiKey: process.env.OPENAI_API_KEY || 'sk-proj-',
|
||||
model: 'dall-e-3',
|
||||
model: 'gpt-image-1',
|
||||
});
|
||||
|
||||
interface WorkflowChannelsState {
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ const model = new ChatOpenAI({
|
|||
|
||||
const dalle = new DallEAPIWrapper({
|
||||
apiKey: process.env.OPENAI_API_KEY || 'sk-proj-',
|
||||
model: 'dall-e-3',
|
||||
model: 'gpt-image-1',
|
||||
});
|
||||
|
||||
const generateContent = z.object({
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ export class OpenaiService {
|
|||
await openai.images.generate({
|
||||
prompt,
|
||||
response_format: isUrl ? 'url' : 'b64_json',
|
||||
model: 'dall-e-3',
|
||||
model: 'gpt-image-1',
|
||||
})
|
||||
).data[0];
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue