chore: add default inference parameters for custom remote models (#4584)
This commit is contained in:
parent
f2f31d8dc8
commit
b79edc225b
@ -195,7 +195,21 @@ export default class JSONEngineManagementExtension extends EngineManagementExten
|
||||
async addRemoteModel(model: Model) {
|
||||
return this.queue
|
||||
.add(() =>
|
||||
ky.post(`${API_URL}/v1/models/add`, { json: model }).then((e) => e)
|
||||
ky
|
||||
.post(`${API_URL}/v1/models/add`, {
|
||||
json: {
|
||||
inference_params: {
|
||||
max_tokens: 8192,
|
||||
temperature: 0.7,
|
||||
top_p: 0.95,
|
||||
stream: true,
|
||||
frequency_penalty: 0,
|
||||
presence_penalty: 0,
|
||||
},
|
||||
...model,
|
||||
},
|
||||
})
|
||||
.then((e) => e)
|
||||
)
|
||||
.then(() => {})
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user