MCPcopy Create free account

hub / github.com/HuggingBear/DuckDuckGo-AI / functions

Functions13 in github.com/HuggingBear/DuckDuckGo-AI

↓ 4 callersFunctiongenerateConversationHash
(messages: string[])
src/conversation.ts:9
↓ 3 callersFunctionsaveConversationId
(kvNamespace: KVNamespace, messagesHash: string, conversationId: string)
src/conversation.ts:23
↓ 2 callersFunctiongetModelFingerprint
* A definitely wrong implement of system fingerpinting algo * @param modelName {string}
src/index.ts:440
↓ 2 callersFunctionhashString
(str: string, algo: string)
src/utils.ts:1
↓ 1 callersFunctioncreateNewConversationId
* Fetches new x-vqd-4 conversation id from the status api header. * @returns {Promise<string | null>} The x-vqd-4 header value or null if not found.
src/index.ts:61
↓ 1 callersFunctioncreateNormalResponse
( c: AppContext, model: string, userMessage: string[], conversationId: string, aiResponse:
src/index.ts:362
↓ 1 callersFunctioncreateStreamResponse
( c: AppContext, model: string, userMessages: string[], conversationId: string, aiResponse
src/index.ts:212
↓ 1 callersFunctiongetConversationId
(kvNamespace: KVNamespace, messagesHash: string)
src/conversation.ts:36
↓ 1 callersFunctionhandleStreamResponsePart
(destinationStream: SSEStreamingApi, serverStreamPart: string, model: string)
src/index.ts:227
↓ 1 callersFunctionreadStream
(body: ReadableStream<Uint8Array>)
src/index.ts:369
FunctionhandleChatCompletionsRoute
* Handles the OpenAI format /v1/chat/completions route. * @param {Context} c The Hono context object. * @returns {Promise<Response>} A JSON response
src/index.ts:114
FunctionhandleModelsRoute
* Handles the /v1/models route. * @param {Context} c The Hono context object. * @returns {Response} A JSON response with the list of models.
src/index.ts:83
FunctionhandleStatusRoute
* Handles the status route. * @param {Context} c The Hono context object. * @returns {Response} A response with the text 'Hi there!'.
src/index.ts:74