-
Notifications
You must be signed in to change notification settings - Fork 254
Allow to specify parameters in models #1009
Copy link
Copy link
Closed
Description
Hi Everyone,
It would be very nice to allow bodyParameters adding in openAIChat
In my case : I can't use gpt 5.1 because it asks to specify temperature: 1
sourcebot/packages/web/src/features/agents/review-agent/nodes/invokeDiffReviewLlm.ts
Line 26 in ca63bf2
| const completion = await openai.chat.completions.create({ |
I'd like to pass informations like this (maybe it's more in the streamMessages than here :
const completion = await
openai.chat.completions.create({
model: "gpt-4.1-mini",
messages: [
{ role: "system", content: prompt }
],
temperature: env.OPEN_AI_TEMPERATURE,
max_tokens: env.OPEN_AI_MAX_TOKENS,
});or maybe better, directly from the models :
"models": [
{
"provider": "openai-compatible",
"baseUrl": "<base-url>",
"model": "gpt41",
"displayName": "Gpt 4.1",
"token": {
"env": "OPEN_AI_TOKEN"
},
"body": {
"temperature": "1",
"maxTokens": { "env": "OPEN_AI_MAX_TOKENS"}
}
}
]Thx a lot
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels