MCPcopy Create free account
hub / github.com/Xyntopia/taskyon / selectedBotID

Function selectedBotID

src/modules/chat.ts:155–167  ·  view source on GitHub ↗
(chatState: ChatStateType)

Source from the content-addressed store, hash-verified

153}
154
155export 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
169export const getAssistants = asyncTimeLruCache<
170 Record<string, OpenAI.Beta.Assistant>

Callers

nothing calls this directly

Calls 2

openAIUsedFunction · 0.85
openRouterUsedFunction · 0.85

Tested by

no test coverage detected