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

Function getApikey

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

Source from the content-addressed store, hash-verified

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

Callers 1

generateHeadersFunction · 0.85

Calls 1

getBackendUrlsFunction · 0.85

Tested by

no test coverage detected