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

Function getCurrentMode

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

Source from the content-addressed store, hash-verified

139}
140
141export function getCurrentMode(chatState: ChatStateType): string {
142 if (openAIUsed(chatState.baseURL)) {
143 if (chatState.useOpenAIAssistants) {
144 return 'openai-assistants';
145 } else {
146 return 'openai';
147 }
148 } else if (openRouterUsed(chatState.baseURL)) {
149 return 'openrouter.ai';
150 } else {
151 return 'unknown'; // Default case if none of the conditions match
152 }
153}
154
155export function selectedBotID(chatState: ChatStateType) {
156 if (openAIUsed(chatState.baseURL)) {

Callers

nothing calls this directly

Calls 2

openAIUsedFunction · 0.85
openRouterUsedFunction · 0.85

Tested by

no test coverage detected