MCPcopy Index your code
hub / github.com/Xyntopia/taskyon / getSelectedModel

Function getSelectedModel

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

Source from the content-addressed store, hash-verified

60}
61
62export function getSelectedModel(chatState: ChatStateType) {
63 return getBackendUrls('openai') == chatState.baseURL
64 ? chatState.openAIModel
65 : chatState.openrouterAIModel;
66}
67
68// this state stores all information which
69// should be stored e.g. in browser LocalStorage

Callers 1

processChatTaskFunction · 0.90

Calls 1

getBackendUrlsFunction · 0.85

Tested by

no test coverage detected