@@ -14,7 +14,6 @@ import {
1414 isUsingChatGLMApiModel ,
1515 isUsingClaudeApiModel ,
1616 isUsingCustomModel ,
17- isUsingCustomNameOnlyModel ,
1817 isUsingOllamaApiModel ,
1918 isUsingGithubThirdPartyApiModel ,
2019 isUsingMultiModeModel ,
@@ -175,10 +174,8 @@ export function GeneralPart({ config, updateConfig, setTabIndex }) {
175174 isUsingOpenAiApiModel ( config ) ||
176175 isUsingMultiModeModel ( config ) ||
177176 isUsingCustomModel ( config ) ||
178- isUsingOllamaApiModel ( config ) ||
179177 isUsingAzureOpenAiApiModel ( config ) ||
180178 isUsingClaudeApiModel ( config ) ||
181- isUsingCustomNameOnlyModel ( config ) ||
182179 isUsingMoonshotApiModel ( config )
183180 ? 'width: 50%;'
184181 : undefined
@@ -270,30 +267,6 @@ export function GeneralPart({ config, updateConfig, setTabIndex }) {
270267 } }
271268 />
272269 ) }
273- { isUsingCustomNameOnlyModel ( config ) && (
274- < input
275- style = "width: 50%;"
276- type = "text"
277- value = { config . poeCustomBotName }
278- placeholder = { t ( 'Bot Name' ) }
279- onChange = { ( e ) => {
280- const customName = e . target . value
281- updateConfig ( { poeCustomBotName : customName } )
282- } }
283- />
284- ) }
285- { isUsingOllamaApiModel ( config ) && (
286- < input
287- style = "width: 50%;"
288- type = "text"
289- value = { config . ollamaModelName }
290- placeholder = { t ( 'Model Name' ) }
291- onChange = { ( e ) => {
292- const ollamaModelName = e . target . value
293- updateConfig ( { ollamaModelName : ollamaModelName } )
294- } }
295- />
296- ) }
297270 { isUsingAzureOpenAiApiModel ( config ) && (
298271 < input
299272 type = "password"
0 commit comments