Skip to content

Commit

Permalink
feat: no openai key
Browse files Browse the repository at this point in the history
  • Loading branch information
nevo-david committed Dec 26, 2024
1 parent 9a3d5c5 commit 1f8940a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
});
Expand Down
4 changes: 2 additions & 2 deletions libraries/nestjs-libraries/src/agent/agent.graph.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
});

Expand Down

0 comments on commit 1f8940a

Please sign in to comment.