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
↓ 1 callers
Function
getSkillInfo
(skillName: string)
server/utils/userSkills.ts:150
↓ 1 callers
Function
getSkillsContext
()
server/utils/userSkills.ts:209
↓ 1 callers
Function
iife
(fn: () => T)
server/models/openai/utils/headers.ts:11
↓ 1 callers
Method
init
()
utils/autoTitleGeneration.ts:18
↓ 1 callers
Method
initializePostgresConnection
(postgresUrl: string)
scripts/migrate-sqlite-to-postgres-simple.ts:92
↓ 1 callers
Function
interopZodResponseFormat
( zodSchema: InteropZodType, name: string, props: Omit<ResponseFormatJSONSchema.JSONSchema, "schema" | "
server/models/openai/utils/openai.ts:116
↓ 1 callers
Function
isAnyOfProp
(prop: Prop)
server/models/openai/utils/openai-format-fndef.ts:56
↓ 1 callers
Function
isBuiltInToolChoice
( tool_choice: OpenAIToolChoice | ResponsesToolChoice | undefined )
server/models/openai/utils/tools.ts:64
↓ 1 callers
Function
isCustomTool
(tool: unknown)
server/models/openai/utils/tools.ts:86
↓ 1 callers
Function
isCustomToolCall
( toolCall: ToolCall )
server/models/openai/utils/tools.ts:131
↓ 1 callers
Function
isInterrupted
(content: ServerContent)
types/multimodal-live-types.ts:90
↓ 1 callers
Function
isModelTurn
(content: ServerContent)
types/multimodal-live-types.ts:98
↓ 1 callers
Function
isOpenAICustomTool
( tool: ChatOpenAIToolType )
server/models/openai/utils/tools.ts:99
↓ 1 callers
Function
isRealtimeChatEnabled
()
server/utils/realtimeChat.ts:4
↓ 1 callers
Function
isServerContentMessage
(msg: LiveIncomingMessage)
types/multimodal-live-types.ts:74
↓ 1 callers
Function
isSetupCompleteMessage
(msg: LiveIncomingMessage)
types/multimodal-live-types.ts:86
↓ 1 callers
Function
isStructuredOutputMethodParams
( x: unknown // eslint-disable-next-line @typescript-eslint/no-explicit-any )
server/models/openai/chat_models.ts:130
↓ 1 callers
Function
isToolCallCancellationMessage
(msg: LiveIncomingMessage)
types/multimodal-live-types.ts:82
↓ 1 callers
Function
isToolCallMessage
(msg: LiveIncomingMessage)
types/multimodal-live-types.ts:78
↓ 1 callers
Function
isTurnComplete
(content: ServerContent)
types/multimodal-live-types.ts:94
↓ 1 callers
Function
jsonSchemaToGeminiParameters
( // eslint-disable-next-line @typescript-eslint/no-explicit-any schema: Record<string, any> )
server/models/genai/utils/zod_to_genai_parameters.ts:62
↓ 1 callers
Function
listInstructions
(userId: number | null)
server/api/instruction/index.get.ts:4
↓ 1 callers
Function
listKnowledgeBase
( id?: string )
server/api/knowledgebases/[id].get.ts:4
↓ 1 callers
Function
listKnowledgeBases
(userId: number | null)
server/api/knowledgebases/index.get.ts:4
↓ 1 callers
Function
listSuperAdmins
()
scripts/promote-super-admin.ts:56
↓ 1 callers
Function
loadBrandIcon
(brandKey: BrandKey)
composables/useBrandIcons.ts:74
↓ 1 callers
Function
loadDocuments
(file: MultiPartData)
server/utils/rag.ts:14
↓ 1 callers
Function
loadOllamaInstructions
()
utils/settings.ts:58
↓ 1 callers
Function
loadOpenAIModels
(apiKey: string, forceRefresh = false, silent = true)
composables/useOpenAIModels.ts:12
↓ 1 callers
Method
loadToolsFromDatabase
(servers: McpServerConfig[])
server/utils/mcp.ts:53
↓ 1 callers
Function
loadURL
(url: string, options: LoadUrlOptions)
server/utils/rag.ts:39
↓ 1 callers
Function
loadVersionsFromStorage
()
composables/useArtifacts.ts:16
↓ 1 callers
Function
main
()
scripts/promote-super-admin.ts:101
↓ 1 callers
Function
main
()
scripts/migrate-sqlite-to-postgres-simple.ts:509
↓ 1 callers
Function
makeParseableResponseFormat
( response_format: ResponseFormatJSONSchema, parser: (content: string) => ParsedT )
server/models/openai/utils/openai.ts:96
↓ 1 callers
Function
mapGenerateContentResultToChatResult
( response: EnhancedGenerateContentResponse )
server/models/genai/utils.ts:176
↓ 1 callers
Function
mcpServiceSingleton
()
server/utils/mcp.ts:376
↓ 1 callers
Function
messageContentMedia
(content: MessageContentComplex)
server/models/genai/utils.ts:52
↓ 1 callers
Function
messageContentMedia
(content: MessageContentComplex)
server/models/genai/utils/common.ts:75
↓ 1 callers
Method
migrateAuthTables
(tx: any, sqliteDbPath: string, dryRun: boolean)
scripts/migrate-sqlite-to-postgres-simple.ts:415
↓ 1 callers
Function
migrateMcpServers
()
scripts/migrate-mcp-servers.ts:19
↓ 1 callers
Method
migrateSqliteToPostgres
(options: MigrationOptions)
scripts/migrate-sqlite-to-postgres-simple.ts:45
↓ 1 callers
Function
omit
(obj: O, keys: K[])
composables/helpers.ts:1
↓ 1 callers
Method
onError
(ev: Event)
utils/MultimodalLiveClient.ts:92
↓ 1 callers
Function
parseCustomToolCall
( // eslint-disable-next-line @typescript-eslint/no-explicit-any rawToolCall: Record<string, any> )
server/models/openai/utils/tools.ts:111
↓ 1 callers
Function
parseModelValue
(val: string)
composables/worker-chatRequest.ts:54
↓ 1 callers
Function
parseSkillFrontmatter
* Parse SKILL.md frontmatter to extract name and description
server/utils/userSkills.ts:45
↓ 1 callers
Method
performMigration
(sqliteDbPath: string, dryRun: boolean)
scripts/migrate-sqlite-to-postgres-simple.ts:129
↓ 1 callers
Function
pingOllama
(endpoint: string)
server/utils/ollama.ts:22
↓ 1 callers
Function
prismaClientSingleton
()
server/utils/prisma.ts:3
↓ 1 callers
Method
processMultipleGeneratedUrls
* Processes the API response if multiple images are generated. * Returns a list of MessageContentImageUrl objects. If the response * format is `
server/models/openai/tools/dalle.ts:179
↓ 1 callers
Function
processStreamingResponse
(reader: ReadableStreamDefaultReader<Uint8Array>)
composables/useQuickChat.ts:126
↓ 1 callers
Function
processTools
(tools: GoogleGenerativeAIToolType[])
server/models/genai/utils/tools.ts:39
↓ 1 callers
Function
promoteUserToSuperAdmin
(identifier: string)
scripts/promote-super-admin.ts:13
↓ 1 callers
Function
proxyFetch
(event: H3Event, apiEndpoint: string, proxyUrl: string)
server/api/proxy.ts:28
↓ 1 callers
Function
proxyTokenGenerate
()
server/utils/proxyToken.ts:5
↓ 1 callers
Function
proxyTokenValidate
(token: string)
server/utils/proxyToken.ts:11
↓ 1 callers
Method
receive
(blob: Blob)
utils/MultimodalLiveClient.ts:151
↓ 1 callers
Function
renderBlocks
(katex: any)
composables/useKatexClient.ts:14
↓ 1 callers
Function
requireAdmin
(event: H3Event)
server/utils/auth.ts:88
↓ 1 callers
Method
rerank
* Returns an ordered list of documents ordered by their relevance to the provided query. * * @param {Array<DocumentInterface | string | Record<s
server/rerank/cohere.ts:104
↓ 1 callers
Method
resetSequences
(tx: any)
scripts/migrate-sqlite-to-postgres-simple.ts:470
↓ 1 callers
Function
runTests
()
server/models/openai/tests/validate-core-logic.ts:46
↓ 1 callers
Function
runTests
()
server/models/openai/tests/validate-image-url-parsing.ts:22
↓ 1 callers
Function
saveInstructions
(name: string, instruction: string, userId: number, isPublic: boolean = false)
server/api/instruction/index.post.ts:3
↓ 1 callers
Method
search
(search: string)
server/docstore/redis.ts:51
↓ 1 callers
Method
send
(parts: Part | Part[], turnComplete: boolean = true)
utils/MultimodalLiveClient.ts:259
↓ 1 callers
Function
sendAgentRequest
(uid: number, conversationRoundId: string, data: AgentRequestData, headers: Record<string, any>)
composables/useAgentWorker.ts:36
↓ 1 callers
Method
serializeDocument
(doc: Document)
server/docstore/redis.ts:15
↓ 1 callers
Function
signUp
(name: string, email: string, password: string)
server/api/auth/signup.post.ts:10
↓ 1 callers
Method
start
()
utils/audio-recorder.ts:27
↓ 1 callers
Method
stop
()
utils/audio-recorder.ts:73
↓ 1 callers
Method
toggleServer
(id: number)
server/utils/mcp.ts:332
↓ 1 callers
Function
transformMessages
(messages: RequestBody['messages'])
server/api/models/chat/index.post.ts:84
↓ 1 callers
Function
tryParseJson
(json: string, defaultValue: any = null)
composables/utils.ts:10
↓ 1 callers
Function
updateInstructions
( id: string, name: string, instruction: string, isPublic?: boolean )
server/api/instruction/[id].put.ts:4
↓ 1 callers
Function
updateOpenAIModels
(models: string[])
config/models.ts:15
↓ 1 callers
Method
updateServer
(id: number, input: McpServerUpdateInput)
server/utils/mcp.ts:223
↓ 1 callers
Function
updateSessionInDB
(sessionId: number, title: string)
composables/useSessionTitle.ts:67
↓ 1 callers
Function
urlGlob2Regexp
(pattern: string)
composables/utils.ts:5
↓ 1 callers
Function
useOpenAIModels
()
composables/useOpenAIModels.ts:8
↓ 1 callers
Function
useSessionTitle
()
composables/useSessionTitle.ts:44
↓ 1 callers
Function
validate
(name: string, password: string)
server/api/auth/login.post.ts:10
↓ 1 callers
Function
validateTransport
(transport: string)
server/types/mcp.ts:65
Function
FetchWithAuth
(this: { username: string | null, password: string | null }, input: RequestInfo | URL, init?: RequestInit)
server/utils/index.ts:9
Method
_call
@ignore
server/models/openai/tools/dalle.ts:230
Function
_combineCallOptions
( additionalOptions?: this["ParsedCallOptions"] )
server/models/openai/chat_models.ts:879
Function
_combineLLMOutput
@ignore
server/models/openai/chat_models.ts:975
Method
_combineLLMOutput
()
server/models/genai/generative-ai.ts:716
Function
_constructAzureFields
( this: Partial<AzureOpenAIChatInput>, fields?: AzureChatOpenAIFields )
server/models/openai/azure/chat_models.ts:53
Function
_convertChatOpenAIToolToCompletionsTool
( tool: ChatOpenAIToolType, fields?: { strict?: boolean } )
server/models/openai/chat_models.ts:918
Function
_fetchWithAuth
(request: any, opts?: any)
composables/fetchWithAuth.ts:12
Method
_generate
* Call out to OpenAI's endpoint with k unique prompts * * @param [prompts] - The prompts to pass into the model. * @param [options] - Optiona
server/models/openai/llms.ts:261
Method
_generate
( messages: BaseMessage[], options: this["ParsedCallOptions"] )
server/models/openai/chat_models.ts:1514
Method
_generate
( messages: BaseMessage[], options: this["ParsedCallOptions"], runManager?: CallbackManagerForLLMR
server/models/openai/chat_models.ts:2353
Method
_generate
@ignore
server/models/openai/chat_models.ts:3487
Method
_generate
( messages: BaseMessage[], options: this["ParsedCallOptions"], runManager?: CallbackManagerForLLMR
server/models/genai/generative-ai.ts:759
Function
_getAzureClientOptions
( this: BaseChatOpenAI<ChatOpenAICallOptions> & Partial<AzureOpenAIChatInput>, options: OpenAICoreRequestO
server/models/openai/azure/chat_models.ts:92
Function
_getClientOptions
@internal
server/models/openai/chat_models.ts:889
Method
_getClientOptions
( options: OpenAICoreRequestOptions | undefined )
server/models/openai/azure/llms.ts:98
← previous
next →
201–300 of 516, ranked by callers