File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
libraries/nestjs-libraries/src/agent Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { agentTopics } from '@gitroom/nestjs-libraries/agent/agent.topics';
99import { PostsService } from '@gitroom/nestjs-libraries/database/prisma/posts/posts.service' ;
1010
1111const model = new ChatOpenAI ( {
12- apiKey : process . env . OPENAI_API_KEY ,
12+ apiKey : process . env . OPENAI_API_KEY || 'sk-proj-' ,
1313 model : 'gpt-4o-2024-08-06' ,
1414 temperature : 0 ,
1515} ) ;
Original file line number Diff line number Diff line change @@ -20,13 +20,13 @@ const tools = !process.env.TAVILY_API_KEY ? [] : [new TavilySearchResults({ maxR
2020const toolNode = new ToolNode ( tools ) ;
2121
2222const model = new ChatOpenAI ( {
23- apiKey : process . env . OPENAI_API_KEY ,
23+ apiKey : process . env . OPENAI_API_KEY || 'sk-proj-' ,
2424 model : 'gpt-4o-2024-08-06' ,
2525 temperature : 0.7 ,
2626} ) ;
2727
2828const dalle = new DallEAPIWrapper ( {
29- apiKey : process . env . OPENAI_API_KEY ,
29+ apiKey : process . env . OPENAI_API_KEY || 'sk-proj-' ,
3030 model : 'dall-e-3' ,
3131} ) ;
3232
You can’t perform that action at this time.
0 commit comments