feat(custom-openai): temperature
This commit is contained in:
parent
446adbef3f
commit
98c185c12e
10 changed files with 51 additions and 6 deletions
|
|
@ -9,6 +9,7 @@ import {
|
|||
getCustomOpenaiApiKey,
|
||||
getCustomOpenaiApiUrl,
|
||||
getCustomOpenaiModelName,
|
||||
getCustomOpenaiTemperature,
|
||||
} from '../config';
|
||||
|
||||
const router = express.Router();
|
||||
|
|
@ -49,7 +50,7 @@ router.post('/', async (req, res) => {
|
|||
llm = new ChatOpenAI({
|
||||
modelName: getCustomOpenaiModelName(),
|
||||
openAIApiKey: getCustomOpenaiApiKey(),
|
||||
temperature: 0.7,
|
||||
temperature: getCustomOpenaiTemperature(),
|
||||
configuration: {
|
||||
baseURL: getCustomOpenaiApiUrl(),
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue