File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -72,11 +72,11 @@ class ManualService {
72
72
const existingTagsList = existingTags
73
73
. map ( tag => tag . name )
74
74
. join ( ', ' ) ;
75
-
75
+ const model = process . env . OPENAI_MODEL ;
76
76
const systemPrompt = process . env . SYSTEM_PROMPT ;
77
77
await this . writePromptToFile ( systemPrompt , content ) ;
78
78
const response = await this . openai . chat . completions . create ( {
79
- model : process . env . OPENAI_MODEL ,
79
+ model : model ,
80
80
messages : [
81
81
{
82
82
role : "system" ,
@@ -170,9 +170,9 @@ class ManualService {
170
170
. join ( ', ' ) ;
171
171
172
172
const systemPrompt = process . env . SYSTEM_PROMPT ;
173
-
173
+ const model = config . custom . model ;
174
174
const response = await this . openai . chat . completions . create ( {
175
- model : config . custom . model ,
175
+ model : model ,
176
176
messages : [
177
177
{
178
178
role : "system" ,
Original file line number Diff line number Diff line change @@ -288,10 +288,10 @@ class OpenAIService {
288
288
289
289
// Truncate content if necessary
290
290
const truncatedContent = await this . truncateToTokenLimit ( content , availableTokens ) ;
291
-
291
+ const model = process . env . OPENAI_MODEL ;
292
292
// Make API request
293
293
const response = await this . client . chat . completions . create ( {
294
- model : process . env . OPENAI_MODEL ,
294
+ model : model ,
295
295
messages : [
296
296
{
297
297
role : "system" ,
You can’t perform that action at this time.
0 commit comments