Skip to content

Commit c3a7487

Browse files
committed
Added further fixing to #439
1 parent 1e46564 commit c3a7487

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

services/manualService.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ class ManualService {
7272
const existingTagsList = existingTags
7373
.map(tag => tag.name)
7474
.join(', ');
75-
75+
const model = process.env.OPENAI_MODEL;
7676
const systemPrompt = process.env.SYSTEM_PROMPT;
7777
await this.writePromptToFile(systemPrompt, content);
7878
const response = await this.openai.chat.completions.create({
79-
model: process.env.OPENAI_MODEL,
79+
model: model,
8080
messages: [
8181
{
8282
role: "system",
@@ -170,9 +170,9 @@ class ManualService {
170170
.join(', ');
171171

172172
const systemPrompt = process.env.SYSTEM_PROMPT;
173-
173+
const model = config.custom.model;
174174
const response = await this.openai.chat.completions.create({
175-
model: config.custom.model,
175+
model: model,
176176
messages: [
177177
{
178178
role: "system",

services/openaiService.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,10 +288,10 @@ class OpenAIService {
288288

289289
// Truncate content if necessary
290290
const truncatedContent = await this.truncateToTokenLimit(content, availableTokens);
291-
291+
const model = process.env.OPENAI_MODEL;
292292
// Make API request
293293
const response = await this.client.chat.completions.create({
294-
model: process.env.OPENAI_MODEL,
294+
model: model,
295295
messages: [
296296
{
297297
role: "system",

0 commit comments

Comments
 (0)