mirror of
https://github.com/yuruotong1/autoMate.git
synced 2025-12-26 05:16:21 +08:00
Revert "Fix: custom_llm_provider needs to be passed when using self-built openai model"
This commit is contained in:
parent
8686a63773
commit
61085f87bb
@ -84,10 +84,6 @@ export function Setting(){
|
||||
<Button
|
||||
onClick={async () => {
|
||||
const hide = message.loading('检测中...', 0);
|
||||
const llmConfig = {
|
||||
...form.getFieldValue("llm"),
|
||||
custom_llm_provider: form.getFieldValue("format")
|
||||
};
|
||||
const res = await fetch(`${localServerBaseUrl}/llm`,
|
||||
{
|
||||
method: 'POST',
|
||||
@ -96,7 +92,7 @@ export function Setting(){
|
||||
},
|
||||
body: JSON.stringify(
|
||||
{ "messages": [{ "role": "user", "content": "hello" }],
|
||||
"llm_config": JSON.stringify(llmConfig)}),
|
||||
"llm_config": JSON.stringify(form.getFieldValue("llm"))}),
|
||||
}
|
||||
)
|
||||
hide();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user