MCPcopy Create free account

hub / github.com/danilofalcao/cursor-deepseek / functions

Functions34 in github.com/danilofalcao/cursor-deepseek

↓ 2 callersMethodGetContentString
GetContentString extracts text content from Message.Content It handles both string and array formats
proxy.go:127
↓ 2 callersFunctionconvertToolChoice
(choice interface{})
proxy.go:179
↓ 2 callersFunctionconvertToolChoice
(choice interface{})
proxy-openrouter.go:96
↓ 2 callersFunctionenableCors
(w http.ResponseWriter)
proxy.go:283
↓ 2 callersFunctionenableCors
(w http.ResponseWriter, r *http.Request)
proxy-openrouter.go:202
↓ 2 callersFunctionenableCors
(w http.ResponseWriter)
proxy-ollama.go:143
↓ 2 callersFunctionhandleModelsRequest
(w http.ResponseWriter)
proxy.go:740
↓ 2 callersFunctionhandleModelsRequest
(w http.ResponseWriter)
proxy-openrouter.go:645
↓ 1 callersMethodSetContentString
SetContentString sets the content as a string
proxy.go:154
↓ 1 callersFunctionconvertMessages
(messages []Message)
proxy.go:202
↓ 1 callersFunctionconvertMessages
(messages []Message)
proxy-openrouter.go:119
↓ 1 callersFunctioncopyHeaders
(dst, src http.Header)
proxy.go:722
↓ 1 callersFunctioncopyHeaders
(dst, src http.Header)
proxy-openrouter.go:627
↓ 1 callersFunctionhandleChatCompletions
(w http.ResponseWriter, r *http.Request)
proxy-ollama.go:171
↓ 1 callersFunctionhandleModelsRequest
(w http.ResponseWriter)
proxy-ollama.go:319
↓ 1 callersFunctionhandleRegularResponse
(w http.ResponseWriter, resp *http.Response, originalModel string)
proxy.go:608
↓ 1 callersFunctionhandleRegularResponse
(w http.ResponseWriter, resp *http.Response)
proxy-openrouter.go:551
↓ 1 callersFunctionhandleRegularResponse
(w http.ResponseWriter, resp *http.Response, originalModel string)
proxy-ollama.go:290
↓ 1 callersFunctionhandleStreamingResponse
(w http.ResponseWriter, r *http.Request, resp *http.Response, originalModel string)
proxy.go:521
↓ 1 callersFunctionhandleStreamingResponse
(w http.ResponseWriter, resp *http.Response)
proxy-openrouter.go:452
↓ 1 callersFunctionhandleStreamingResponse
(w http.ResponseWriter, r *http.Request, resp *http.Response, originalModel string)
proxy-ollama.go:230
↓ 1 callersFunctionreadResponse
(resp *http.Response)
proxy.go:761
↓ 1 callersFunctionreadResponse
(resp *http.Response)
proxy-openrouter.go:665
↓ 1 callersFunctiontruncateString
(s string, maxLen int)
proxy.go:248
Functioninit
()
proxy.go:43
Functioninit
()
proxy-openrouter.go:30
Functioninit
()
proxy-ollama.go:34
Functionmain
()
proxy.go:266
Functionmain
()
proxy-openrouter.go:185
Functionmain
()
proxy-ollama.go:126
FunctionproxyHandler
(w http.ResponseWriter, r *http.Request)
proxy.go:291
FunctionproxyHandler
(w http.ResponseWriter, r *http.Request)
proxy-openrouter.go:210
FunctionproxyHandler
(w http.ResponseWriter, r *http.Request)
proxy-ollama.go:151
FunctiontruncateString
(s string, maxLen int)
proxy-openrouter.go:167