(chatState: ChatStateType)
| 153 | } |
| 154 | |
| 155 | export function selectedBotID(chatState: ChatStateType) { |
| 156 | if (openAIUsed(chatState.baseURL)) { |
| 157 | if (chatState.useOpenAIAssistants) { |
| 158 | return chatState.openAIAssistant; |
| 159 | } else { |
| 160 | return chatState.openAIModel; |
| 161 | } |
| 162 | } else if (openRouterUsed(chatState.baseURL)) { |
| 163 | return chatState.openrouterAIModel; |
| 164 | } else { |
| 165 | return ''; |
| 166 | } |
| 167 | } |
| 168 | |
| 169 | export const getAssistants = asyncTimeLruCache< |
| 170 | Record<string, OpenAI.Beta.Assistant> |
nothing calls this directly
no test coverage detected