(chatState: ChatStateType)
| 54 | } |
| 55 | |
| 56 | export function getApikey(chatState: ChatStateType) { |
| 57 | return getBackendUrls('openai') == chatState.baseURL |
| 58 | ? chatState.openAIApiKey |
| 59 | : chatState.openRouterAIApiKey; |
| 60 | } |
| 61 | |
| 62 | export function getSelectedModel(chatState: ChatStateType) { |
| 63 | return getBackendUrls('openai') == chatState.baseURL |
no test coverage detected