Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/HuggingBear/DuckDuckGo-AI
/ functions
Functions
13 in github.com/HuggingBear/DuckDuckGo-AI
⨍
Functions
13
◇
Types & classes
5
↓ 4 callers
Function
generateConversationHash
(messages: string[])
src/conversation.ts:9
↓ 3 callers
Function
saveConversationId
(kvNamespace: KVNamespace, messagesHash: string, conversationId: string)
src/conversation.ts:23
↓ 2 callers
Function
getModelFingerprint
* A definitely wrong implement of system fingerpinting algo * @param modelName {string}
src/index.ts:440
↓ 2 callers
Function
hashString
(str: string, algo: string)
src/utils.ts:1
↓ 1 callers
Function
createNewConversationId
* 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 callers
Function
createNormalResponse
( c: AppContext, model: string, userMessage: string[], conversationId: string, aiResponse:
src/index.ts:362
↓ 1 callers
Function
createStreamResponse
( c: AppContext, model: string, userMessages: string[], conversationId: string, aiResponse
src/index.ts:212
↓ 1 callers
Function
getConversationId
(kvNamespace: KVNamespace, messagesHash: string)
src/conversation.ts:36
↓ 1 callers
Function
handleStreamResponsePart
(destinationStream: SSEStreamingApi, serverStreamPart: string, model: string)
src/index.ts:227
↓ 1 callers
Function
readStream
(body: ReadableStream<Uint8Array>)
src/index.ts:369
Function
handleChatCompletionsRoute
* 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
Function
handleModelsRoute
* 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
Function
handleStatusRoute
* Handles the status route. * @param {Context} c The Hono context object. * @returns {Response} A response with the text 'Hi there!'.
src/index.ts:74