mirror of
https://github.com/enricoros/big-AGI.git
synced 2026-05-10 21:50:14 -07:00
LLMs: remove vendorspec from the params editor
This commit is contained in:
@@ -31,7 +31,6 @@ export function LLMOptionsGlobal(props: { llm: DLLM }) {
|
||||
return (
|
||||
<LLMParametersEditor
|
||||
maxOutputTokens={getLLMMaxOutputTokens(llm) ?? null}
|
||||
vendorSpec={llm.vId}
|
||||
parameterSpecs={llm.parameterSpecs}
|
||||
parameterOmitTemperature={llm.interfaces.includes(LLM_IF_HOTFIX_NoTemperature)}
|
||||
baselineParameters={llm.initialParameters}
|
||||
|
||||
@@ -119,7 +119,6 @@ const _xaiDateFilterOptions = [
|
||||
export function LLMParametersEditor(props: {
|
||||
// constants
|
||||
maxOutputTokens: DLLMMaxOutputTokens,
|
||||
vendorSpec: ModelVendorId,
|
||||
parameterSpecs: DModelParameterSpec<DModelParameterId>[],
|
||||
parameterOmitTemperature?: boolean,
|
||||
baselineParameters: DModelParameterValues,
|
||||
@@ -201,11 +200,6 @@ export function LLMParametersEditor(props: {
|
||||
return paramId in modelParamSpec && !modelParamSpec[paramId].hidden;
|
||||
}
|
||||
|
||||
/** discouraged: only used where we know a vendor supports a parameter on EACH model - and does NOT add the parameter Spec (dangerous) */
|
||||
function showAllParamsFromVendor(vendorId: ModelVendorId): boolean {
|
||||
return props.vendorSpec === vendorId;
|
||||
}
|
||||
|
||||
const temperatureHide = showParam('llmVndAntThinkingBudget');
|
||||
const antThinkingOff = llmVndAntThinkingBudget === null;
|
||||
const gemThinkingAuto = llmVndGeminiThinkingBudget === undefined;
|
||||
|
||||
Reference in New Issue
Block a user