Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/sugarforever/chat-ollama
/ functions
Functions
516 in github.com/sugarforever/chat-ollama
⨍
Functions
516
◇
Types & classes
160
↓ 2 callers
Function
initChat
(family: string, modelName: string, params: InitChatParams, isCustomModel = false)
server/utils/models.ts:66
↓ 2 callers
Method
invocationParams
( options?: this["ParsedCallOptions"] )
server/models/openai/chat_models.ts:1429
↓ 2 callers
Method
invocationParams
(options?: this["ParsedCallOptions"])
server/models/openai/chat_models.ts:3478
↓ 2 callers
Method
invocationParams
( options?: this["ParsedCallOptions"] )
server/models/genai/generative-ai.ts:741
↓ 2 callers
Function
isAclEnabled
()
server/utils/auth.ts:12
↓ 2 callers
Function
isApiEmbeddingModelExists
(embeddingModelName: string)
server/utils/models.ts:17
↓ 2 callers
Function
isBuiltInTool
(tool: ChatOpenAIToolType)
server/models/openai/utils/tools.ts:60
↓ 2 callers
Function
isHeaders
(headers: unknown)
server/models/openai/utils/headers.ts:13
↓ 2 callers
Function
isModelsManagementEnabled
()
server/utils/modelsManagement.ts:4
↓ 2 callers
Function
isOllamaModelExists
(ollama: Ollama, embeddingModelName: string)
server/utils/models.ts:21
↓ 2 callers
Function
isValidArtifactContent
* Validates if content is suitable for artifact rendering
composables/useArtifacts.ts:198
↓ 2 callers
Method
listTools
()
server/utils/mcp.ts:36
↓ 2 callers
Method
load
()
server/utils/recursiveUrlLoader.ts:234
↓ 2 callers
Function
loadModels
()
composables/useModels.ts:56
↓ 2 callers
Method
migrateAllTables
(tx: any, sqliteDbPath: string, dryRun: boolean)
scripts/migrate-sqlite-to-postgres-simple.ts:143
↓ 2 callers
Function
openaiApiFillPath
(endpoint: string)
server/utils/models.ts:58
↓ 2 callers
Function
processToolCalls
( toolCalls: any[], toolsMap: Record<string, StructuredToolInterface>, accumulatedToolCalls: any[], ac
server/api/models/chat/index.post.ts:138
↓ 2 callers
Function
requireInstruction
(id?: string)
server/utils/instructions.ts:9
↓ 2 callers
Function
requireInstructionOwner
(event: any, instruction: Instruction)
server/utils/instructions.ts:34
↓ 2 callers
Function
requireKnowledgeBase
(id?: string)
server/utils/knowledgeBase.ts:15
↓ 2 callers
Function
requireKnowledgeBaseOwner
(event: any, knowledgeBase: KnowledgeBase)
server/utils/knowledgeBase.ts:40
↓ 2 callers
Function
saveVersionsToStorage
()
composables/useArtifacts.ts:31
↓ 2 callers
Function
scanSkillsDir
* Scan a directory for skills (directories containing SKILL.md)
server/utils/userSkills.ts:68
↓ 2 callers
Method
scheduleNextBuffer
()
utils/audio-streamer.ts:64
↓ 2 callers
Function
serializeMessages
(messages: RequestBody['messages'])
server/api/models/chat/index.post.ts:69
↓ 2 callers
Function
showUsage
()
scripts/promote-super-admin.ts:81
↓ 2 callers
Method
toJSON
()
server/models/openai/azure/chat_models.ts:841
↓ 2 callers
Function
toPosixPath
(p: string)
server/utils/userSkills.ts:11
↓ 2 callers
Function
useInstructionsCache
()
composables/useInstructionsCache.ts:17
↓ 2 callers
Function
useModels
(options?: Options)
composables/useModels.ts:28
↓ 2 callers
Function
validateMcpServerConfig
(config: McpServerCreateInput)
server/types/mcp.ts:73
↓ 2 callers
Function
zodToGenerativeAIParameters
( // eslint-disable-next-line @typescript-eslint/no-explicit-any zodObj: z.ZodType<any> )
server/models/genai/utils/zod_to_genai_parameters.ts:50
↓ 1 callers
Method
_convertCompletionsDeltaToBaseMessageChunk
@internal
server/models/openai/chat_models.ts:2762
↓ 1 callers
Method
_convertCompletionsMessageToBaseMessage
@internal
server/models/openai/chat_models.ts:2682
↓ 1 callers
Method
_convertReasoningSummary
@internal
server/models/openai/chat_models.ts:2198
↓ 1 callers
Method
_convertResponsesDeltaToBaseMessageChunk
@internal
server/models/openai/chat_models.ts:1756
↓ 1 callers
Function
_convertToOpenAITool
( // eslint-disable-next-line @typescript-eslint/no-explicit-any tool: BindToolsInput, fields?: { /*
server/models/openai/utils/tools.ts:34
↓ 1 callers
Method
_getStructuredOutputMethod
@internal
server/models/openai/azure/chat_models.ts:828
↓ 1 callers
Method
_reduceChatOpenAITools
@internal
server/models/openai/chat_models.ts:2229
↓ 1 callers
Method
_streamResponseChunks
( messages: BaseMessage[], options: this["ParsedCallOptions"], runManager?: CallbackManagerForLLMR
server/models/openai/chat_models.ts:1569
↓ 1 callers
Method
_streamResponseChunks
( messages: BaseMessage[], options: this["ParsedCallOptions"], runManager?: CallbackManagerForLLMR
server/models/openai/chat_models.ts:2515
↓ 1 callers
Method
_streamResponseChunks
( messages: BaseMessage[], options: this["ParsedCallOptions"], runManager?: CallbackManagerForLLMR
server/models/genai/generative-ai.ts:830
↓ 1 callers
Method
_validateResult
(result: unknown)
server/models/genai/output_parsers.ts:42
↓ 1 callers
Function
addArtifactVersion
* Adds an artifact version to the session store
composables/useArtifacts.ts:326
↓ 1 callers
Method
addText
(key: string, value: string)
server/docstore/redis.ts:47
↓ 1 callers
Function
arrayBufferToBase64
(buffer: ArrayBuffer)
utils/audio-recorder.ts:4
↓ 1 callers
Function
base64ToArrayBuffer
(base64: string)
utils/multimodal-live.ts:11
↓ 1 callers
Function
blobToJSON
(blob: Blob)
utils/multimodal-live.ts:1
↓ 1 callers
Function
chatRequest
(uid: number, data: RequestData, headers: Record<string, any>)
composables/worker-chatRequest.ts:59
↓ 1 callers
Function
checkLoaded
()
composables/useBrandIcons.ts:82
↓ 1 callers
Method
checkTargetDatabase
()
scripts/migrate-sqlite-to-postgres-simple.ts:103
↓ 1 callers
Method
cleanup
()
scripts/migrate-sqlite-to-postgres-simple.ts:499
↓ 1 callers
Method
completionWithRetry
( request: string | GenerateContentRequest | (string | GenerativeAIPart)[], options?: this["ParsedCall
server/models/genai/generative-ai.ts:906
↓ 1 callers
Method
compressDocuments
* Compress documents using Cohere's rerank API. * * @param {Array<DocumentInterface>} documents A sequence of documents to compress. * @param
server/rerank/cohere.ts:70
↓ 1 callers
Function
convertAuthorToRole
(author: string)
server/models/genai/utils.ts:35
↓ 1 callers
Function
convertAuthorToRole
( author: string )
server/models/genai/utils/common.ts:52
↓ 1 callers
Function
convertCompletionsCustomTool
( tool: OpenAIClient.Chat.ChatCompletionCustomTool )
server/models/openai/utils/tools.ts:141
↓ 1 callers
Function
convertMessageContentToParts
( content: MessageContent, isMultimodalModel: boolean )
server/models/genai/utils.ts:65
↓ 1 callers
Function
convertMessageContentToParts
( message: BaseMessage, isMultimodalModel: boolean )
server/models/genai/utils/common.ts:88
↓ 1 callers
Function
convertOpenAIToolToGenAI
( tool: ToolDefinition )
server/models/genai/utils/tools.ts:104
↓ 1 callers
Function
convertPromptToOpenAI
(formattedPrompt: BasePromptValue)
server/models/openai/utils/prompts.ts:38
↓ 1 callers
Function
convertResponseContentToChatGenerationChunk
( response: EnhancedGenerateContentResponse )
server/models/genai/utils.ts:212
↓ 1 callers
Function
convertResponsesCustomTool
( tool: OpenAIClient.Responses.CustomTool )
server/models/openai/utils/tools.ts:170
↓ 1 callers
Function
convertToGenerativeAITools
( tools: GoogleGenerativeAIToolType[] )
server/models/genai/utils/common.ts:401
↓ 1 callers
Function
createAgent
(instruction: string, tools: StructuredTool[], model?: any)
server/api/agents/[id].post.ts:13
↓ 1 callers
Method
createAudioBuffer
(audioData: Float32Array)
utils/audio-streamer.ts:54
↓ 1 callers
Function
createChromaVectorStore
(embeddings: Embeddings, collectionName: string)
server/utils/vectorstores.ts:6
↓ 1 callers
Function
createMilvusVectorStore
(embeddings: Embeddings, collectionName: string)
server/utils/vectorstores.ts:14
↓ 1 callers
Function
createOllama
(endpoint: string, username: string | null, password: string | null)
server/utils/ollama.ts:8
↓ 1 callers
Function
createProxyAgent
(proxyUrl: string, protocol: Protocol)
server/api/proxy.ts:13
↓ 1 callers
Function
createRedisClient
()
server/store/redis.ts:3
↓ 1 callers
Method
createServer
(input: McpServerCreateInput)
server/utils/mcp.ts:179
↓ 1 callers
Function
createToolConfig
( genAITools: GenerativeAITool[], extra?: { toolChoice?: ToolChoice allowedFunctionNames?: string[
server/models/genai/utils/tools.ts:120
↓ 1 callers
Function
createUserSkillsMiddleware
()
server/utils/userSkills.ts:238
↓ 1 callers
Function
createVectorStore
(embeddings: Embeddings, collectionName: string)
server/utils/vectorstores.ts:22
↓ 1 callers
Method
deleteAll
()
server/docstore/redis.ts:105
↓ 1 callers
Function
deleteInstructions
(id: string)
server/api/instruction/[id].delete.ts:4
↓ 1 callers
Function
deleteKnowledgeBase
( id?: string )
server/api/knowledgebases/[id].delete.ts:7
↓ 1 callers
Method
deleteServer
(id: number)
server/utils/mcp.ts:311
↓ 1 callers
Method
deserializeDocument
(jsonString: string)
server/docstore/redis.ts:19
↓ 1 callers
Function
detectArtifact
* Detects if a message contains an artifact and extracts it
composables/useArtifacts.ts:55
↓ 1 callers
Function
extractGenericMessageCustomRole
(message: ChatMessage)
server/models/openai/chat_models.ts:142
↓ 1 callers
Function
extractToken
(authHeaderValue: string)
server/utils/auth.ts:32
↓ 1 callers
Function
fetchCustomModels
(customConfigs: any[])
server/api/models/index.get.ts:110
↓ 1 callers
Function
fetchGeminiModels
(apiKey: string)
server/api/models/index.get.ts:68
↓ 1 callers
Function
fetchOllamaModels
(event: any)
server/api/models/index.get.ts:100
↓ 1 callers
Function
fetchOpenAIModels
(apiKey: string)
server/api/models/index.get.ts:32
↓ 1 callers
Function
formatDocumentsAsString
(documents: Document[])
server/api/models/chat/index.post.ts:6
↓ 1 callers
Function
formatFunctionDefinitions
(functions: FunctionDef[])
server/models/openai/utils/openai-format-fndef.ts:65
↓ 1 callers
Function
generateSessionTitle
(options: SessionTitleOptions)
composables/useSessionTitle.ts:76
↓ 1 callers
Function
generateTitleAPI
(model: string, family: string, userMessage: string, sessionId: number)
composables/useSessionTitle.ts:46
↓ 1 callers
Method
getChildLinks
(html: string, baseUrl: string)
server/utils/recursiveUrlLoader.ts:82
↓ 1 callers
Method
getChildUrlsRecursive
( inputUrl: string, visited: Set<string> = new Set<string>(), depth = 0 )
server/utils/recursiveUrlLoader.ts:184
↓ 1 callers
Function
getCurrentWeather
(location: string)
server/models/openai/tests/chat_models-extended.int.test.ts:126
↓ 1 callers
Function
getFileExtension
* Gets the appropriate file extension for an artifact type
composables/useArtifacts.ts:280
↓ 1 callers
Method
getKeys
()
server/docstore/redis.ts:28
↓ 1 callers
Function
getMessageAuthor
(message: BaseMessage)
server/models/genai/utils.ts:21
↓ 1 callers
Function
getMessageAuthor
(message: BaseMessage)
server/models/genai/utils/common.ts:35
↓ 1 callers
Function
getMimeType
* Gets the MIME type for an artifact
composables/useArtifacts.ts:295
↓ 1 callers
Function
getNextVersionNumber
* Gets the next version number for an artifact type in a session
composables/useArtifacts.ts:364
← previous
next →
101–200 of 516, ranked by callers