feat: no openai key

This commit is contained in:
Nevo David 2024-12-26 15:34:24 +07:00
parent 9a3d5c5580
commit 1f8940a7c4
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ import { agentTopics } from '@gitroom/nestjs-libraries/agent/agent.topics';
import { PostsService } from '@gitroom/nestjs-libraries/database/prisma/posts/posts.service';
const model = new ChatOpenAI({
apiKey: process.env.OPENAI_API_KEY,
apiKey: process.env.OPENAI_API_KEY || 'sk-proj-',
model: 'gpt-4o-2024-08-06',
temperature: 0,
});

View File

@ -20,13 +20,13 @@ const tools = !process.env.TAVILY_API_KEY ? [] : [new TavilySearchResults({ maxR
const toolNode = new ToolNode(tools);
const model = new ChatOpenAI({
apiKey: process.env.OPENAI_API_KEY,
apiKey: process.env.OPENAI_API_KEY || 'sk-proj-',
model: 'gpt-4o-2024-08-06',
temperature: 0.7,
});
const dalle = new DallEAPIWrapper({
apiKey: process.env.OPENAI_API_KEY,
apiKey: process.env.OPENAI_API_KEY || 'sk-proj-',
model: 'dall-e-3',
});