Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/sugarforever/chat-ollama
/ functions
Functions
516 in github.com/sugarforever/chat-ollama
⨍
Functions
516
◇
Types & classes
160
↓ 226 callers
Method
log
(type: string, message: StreamingLog["message"])
utils/MultimodalLiveClient.ts:70
↓ 27 callers
Method
bindTools
( tools: GoogleGenerativeAIToolType[], kwargs?: Partial<GoogleGenerativeAIChatCallOptions> )
server/models/genai/generative-ai.ts:724
↓ 20 callers
Function
assertEqual
(actual: any, expected: any, message: string)
server/models/openai/tests/validate-core-logic.ts:10
↓ 19 callers
Function
assertEqual
(actual: any, expected: any, message: string)
server/models/openai/tests/validate-image-url-parsing.ts:14
↓ 19 callers
Method
withConfig
( config: Partial<CallOptions> )
server/models/openai/chat_models.ts:3518
↓ 17 callers
Function
getLocalValue
(key: string)
utils/settings.ts:6
↓ 16 callers
Method
withStructuredOutput
( outputSchema: | z.ZodType<RunOutput> // eslint-disable-next-line @typescript-eslint/no-expli
server/models/genai/generative-ai.ts:949
↓ 14 callers
Function
assertResponse
(message: BaseMessage | BaseMessageChunk | undefined)
server/models/openai/tests/chat_models_responses.int.test.ts:34
↓ 13 callers
Method
add
* Adds new documents to the store. * @param texts An object where the keys are document IDs and the values are the documents themselves. * @retu
server/docstore/redis.ts:66
↓ 12 callers
Function
processImagesInDelta
(delta: MockDelta)
server/models/openai/tests/image-parsing-unit.test.ts:31
↓ 10 callers
Method
close
()
server/utils/mcp.ts:355
↓ 9 callers
Method
embedDocuments
* Method to generate embeddings for an array of documents. Splits the * documents into batches and makes requests to the OpenAI API to generate
server/models/openai/embeddings.ts:149
↓ 9 callers
Method
migrateTable
(tableName: string, description: string, sqliteDbPath: string, migrationFn: (data: SQLiteRow[]) => Promise<voi
scripts/migrate-sqlite-to-postgres-simple.ts:347
↓ 8 callers
Method
_convertCompletionsDeltaToBaseMessageChunk
( delta: Record<string, any>, rawResponse: ChatCompletionChunk, defaultRole?: | "fun
server/models/openai/tests/chat_models.int.test.ts:1258
↓ 8 callers
Function
isMcpEnabled
()
server/utils/mcpFeature.ts:4
↓ 8 callers
Function
processImagesField
(delta: any)
server/models/openai/tests/validate-core-logic.ts:19
↓ 7 callers
Function
concatStream
(stream: Promise<AsyncIterable<AIMessageChunk>>)
server/models/openai/tests/chat_models_responses.int.test.ts:23
↓ 7 callers
Function
invoke
( invocationType: string, prompt: BaseLanguageModelInput )
server/models/openai/tests/chat_models_responses.int.test.ts:142
↓ 7 callers
Function
requireAdminIfAclEnabled
(event: H3Event)
server/utils/auth.ts:122
↓ 7 callers
Function
safeJsonStringify
(obj: any)
server/api/models/chat/index.post.ts:184
↓ 6 callers
Function
assert
(condition: any, message: string)
server/models/openai/tests/validate-core-logic.ts:4
↓ 6 callers
Function
dbRecordToConfig
(server: any)
server/types/mcp.ts:116
↓ 6 callers
Function
ensureInitialized
()
composables/useArtifacts.ts:45
↓ 6 callers
Function
getEndpoint
(config: OpenAIEndpointConfig)
server/models/openai/utils/azure.ts:35
↓ 6 callers
Function
isKnowledgeBaseEnabled
()
server/utils/knowledgeBase.ts:7
↓ 6 callers
Method
parseDate
* Parse SQLite date values which can be either numeric timestamps or ISO date strings
scripts/migrate-sqlite-to-postgres-simple.ts:24
↓ 6 callers
Function
sendMessageToMain
(data: WorkerSendMessage)
composables/worker-chatRequest.ts:50
↓ 5 callers
Function
assert
(condition: any, message: string)
server/models/openai/tests/validate-image-url-parsing.ts:8
↓ 5 callers
Method
connect
(config: LiveConfig)
utils/MultimodalLiveClient.ts:79
↓ 5 callers
Function
createMessageResponse
(content: string | MessageContent[], toolCalls: any[], toolResults: any[])
server/api/models/chat/index.post.ts:175
↓ 5 callers
Function
createSystemChatMessage
(text: string, name?: string)
server/models/openai/tests/chat_models.int.test.ts:358
↓ 5 callers
Function
createSystemChatMessage
(text: string, name?: string)
server/models/openai/tests/azure/chat_models.int.test.ts:686
↓ 5 callers
Function
getOllama
(event: H3Event<EventHandlerRequest>, interceptResponse = false)
server/utils/ollama.ts:37
↓ 5 callers
Function
listUserSkills
()
server/utils/userSkills.ts:122
↓ 5 callers
Function
setEventStreamResponse
(event: H3Event<EventHandlerRequest>)
server/utils/index.ts:3
↓ 5 callers
Function
wrapOpenAIClientError
(e: any)
server/models/openai/utils/openai.ts:25
↓ 4 callers
Method
_sendDirect
(request: object)
utils/MultimodalLiveClient.ts:277
↓ 4 callers
Method
_useResponsesApi
(options: this["ParsedCallOptions"] | undefined)
server/models/openai/chat_models.ts:3451
↓ 4 callers
Function
addLangChainErrorFields
( error: any, lc_error_code: LangChainErrorCodes )
server/models/openai/utils/errors.ts:15
↓ 4 callers
Function
createChatModel
(modelName: string, family: string, event: H3Event)
server/utils/models.ts:130
↓ 4 callers
Method
disconnect
(ws?: WebSocket)
utils/MultimodalLiveClient.ts:141
↓ 4 callers
Method
embedQuery
* Method to generate an embedding for a single document. Calls the * embeddingWithRetry method with the document as the input. * @param text Doc
server/models/openai/embeddings.ts:184
↓ 4 callers
Function
getUserSkillsDir
()
server/utils/userSkills.ts:19
↓ 4 callers
Function
isReasoningModel
(model?: string)
server/models/openai/chat_models.ts:123
↓ 4 callers
Function
isRecord
(obj: unknown)
server/models/openai/azure/chat_models.ts:167
↓ 4 callers
Function
testReasoningSummaries
( requestType: "stream" | "invoke", extraConfig: Record<string, unknown> = {}, removePreviousOutpu
server/models/openai/tests/chat_models_responses.int.test.ts:633
↓ 4 callers
Function
useFeatures
()
composables/useFeatures.ts:19
↓ 3 callers
Function
_convertMessagesToOpenAIParams
( messages: BaseMessage[], model?: string )
server/models/openai/chat_models.ts:355
↓ 3 callers
Method
_getClientOptions
* Calls the OpenAI API with retry logic in case of failures. * @param request The request to send to the OpenAI API. * @param options Optional c
server/models/openai/llms.ts:461
↓ 3 callers
Function
assertImageGenerationToolOutput
(tool_outputs: any)
server/models/openai/tests/chat_models_responses.int.test.ts:456
↓ 3 callers
Method
completionWithRetry
( request: | OpenAIClient.CompletionCreateParamsStreaming | OpenAIClient.CompletionCreateParam
server/models/openai/llms.ts:432
↓ 3 callers
Function
createEmbeddings
(embeddingModelName: string, event: H3Event)
server/utils/models.ts:26
↓ 3 callers
Function
createRetriever
( embeddings: Embeddings, collectionName: string, documents: Document[] | null = null, parentChunkSize
server/retriever/index.ts:9
↓ 3 callers
Function
ensureSkillsDirExists
()
server/utils/userSkills.ts:34
↓ 3 callers
Function
extractContentFromChunk
(chunk: BaseMessageChunk)
server/api/models/chat/index.post.ts:113
↓ 3 callers
Function
findComputerCall
( message: AIMessage | AIMessageChunk | undefined )
server/models/openai/tests/chat_models_responses.int.test.ts:531
↓ 3 callers
Function
getKeysHeader
()
utils/settings.ts:56
↓ 3 callers
Function
getProjectSkillsDir
()
server/utils/userSkills.ts:27
↓ 3 callers
Function
getProxyEndpoint
(endpoint: string, useProxy: boolean)
server/utils/models.ts:152
↓ 3 callers
Method
invocationParams
* Get the parameters used to invoke the model
server/models/openai/llms.ts:205
↓ 3 callers
Method
invocationParams
@internal
server/models/openai/chat_models.ts:2274
↓ 3 callers
Function
invoke
( chatModel: ChatOpenAI, input: BaseLanguageModelInput, stream: boolean )
server/models/openai/tests/chat_models.standard.int.test.ts:124
↓ 3 callers
Function
messageToOpenAIRole
( message: BaseMessage )
server/models/openai/chat_models.ts:157
↓ 3 callers
Function
normalizeHeaders
( headers: HeadersLike )
server/models/openai/utils/headers.ts:22
↓ 3 callers
Function
parseAuthUser
(event: H3Event)
server/utils/auth.ts:40
↓ 3 callers
Function
parseKnowledgeBaseFormRequest
(event: H3Event)
server/utils/http.ts:4
↓ 3 callers
Function
preloadInstructions
(forceRefresh: boolean = false)
composables/useInstructionsCache.ts:26
↓ 3 callers
Function
removeAdditionalProperties
( // eslint-disable-next-line @typescript-eslint/no-explicit-any obj: Record<string, any> )
server/models/genai/utils/zod_to_genai_parameters.ts:20
↓ 3 callers
Function
requireAuth
(event: H3Event)
server/utils/auth.ts:69
↓ 3 callers
Function
updateToDB
(data: SetRequired<Partial<ChatHistory>, 'id'>)
composables/worker-chatRequest.ts:284
↓ 2 callers
Method
_convertCompletionsMessageToBaseMessage
( message: ChatCompletionMessage, rawResponse: ChatCompletion )
server/models/openai/tests/chat_models.int.test.ts:1279
↓ 2 callers
Method
_convertMessagesToResponsesParams
@internal
server/models/openai/chat_models.ts:1912
↓ 2 callers
Method
_convertResponsesMessageToBaseMessage
@internal
server/models/openai/chat_models.ts:1640
↓ 2 callers
Method
_identifyingParams
@ignore
server/models/openai/llms.ts:226
↓ 2 callers
Function
_recordWithUndefinedValues
( record: Record<string, string | undefined> )
server/models/openai/tests/utils.ts:22
↓ 2 callers
Function
addToDB
(data: Omit<ChatHistory, 'id'>)
composables/worker-chatRequest.ts:276
↓ 2 callers
Method
completionWithRetry
( request: OpenAIClient.Responses.ResponseCreateParams, requestOptions?: OpenAIClient.RequestOptions
server/models/openai/chat_models.ts:1617
↓ 2 callers
Method
completionWithRetry
( request: OpenAIClient.Chat.ChatCompletionCreateParams, requestOptions?: OpenAIClient.RequestOptions
server/models/openai/chat_models.ts:2651
↓ 2 callers
Function
convertBaseMessagesToContent
( messages: BaseMessage[], isMultimodalModel: boolean )
server/models/genai/utils.ts:115
↓ 2 callers
Method
convertToMcpClientConfig
(servers: McpServerConfig[])
server/utils/mcp.ts:101
↓ 2 callers
Function
convertToolsToGenAI
( tools: GoogleGenerativeAIToolType[], extra?: { toolChoice?: ToolChoice allowedFunctionNames?: st
server/models/genai/utils/tools.ts:20
↓ 2 callers
Function
createSampleMessages
()
server/models/openai/tests/chat_models.int.test.ts:364
↓ 2 callers
Function
createSampleMessages
()
server/models/openai/tests/azure/chat_models.int.test.ts:658
↓ 2 callers
Function
customTool
( func: RunnableFunc<string, string, ToolRunnableConfig>, fields: CustomToolFields )
server/models/openai/tools/custom.ts:12
↓ 2 callers
Method
embeddingWithRetry
* Private method to make a request to the OpenAI API to generate * embeddings. Handles the retry logic and returns the response from the * API.
server/models/openai/embeddings.ts:203
↓ 2 callers
Function
extractArtifactTitle
* Extracts a meaningful title from artifact content
composables/useArtifacts.ts:222
↓ 2 callers
Method
fetchWithTimeout
( resource: string, options: { timeout: number } & RequestInit, isGetChildLinks = false )
server/utils/recursiveUrlLoader.ts:69
↓ 2 callers
Function
formatObjectProperties
(obj: ObjectProp, indent: number)
server/models/openai/utils/openai-format-fndef.ts:85
↓ 2 callers
Function
formatToOpenAIToolChoice
( toolChoice?: OpenAIToolChoice )
server/models/openai/utils/openai.ts:72
↓ 2 callers
Function
formatType
(param: Prop, indent: number)
server/models/openai/utils/openai-format-fndef.ts:101
↓ 2 callers
Function
generateArtifactId
* Generates a unique artifact ID
composables/useArtifacts.ts:253
↓ 2 callers
Method
getAllServers
()
server/utils/mcp.ts:144
↓ 2 callers
Function
getArtifactVersions
* Gets all versions of artifacts for a session
composables/useArtifacts.ts:351
↓ 2 callers
Function
getFormat
()
server/models/openai/utils/tools.ts:144
↓ 2 callers
Method
getLsParams
(options: this["ParsedCallOptions"])
server/models/openai/azure/chat_models.ts:812
↓ 2 callers
Method
getNamespacedKey
(key: string)
server/docstore/redis.ts:24
↓ 2 callers
Method
getServerById
(id: number)
server/utils/mcp.ts:157
↓ 2 callers
Method
getUrlAsDoc
(url: string)
server/utils/recursiveUrlLoader.ts:169
↓ 2 callers
Function
ingestDocument
( files: MultiPartData[], collectionName: string, embedding: string, chunkSettings: ChunkSettings, e
server/utils/rag.ts:70
↓ 2 callers
Function
ingestURLs
( urls: string[], collectionName: string, embedding: string, event: H3Event )
server/utils/rag.ts:91
next →
1–100 of 516, ranked by callers