Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Alorse/copilot-to-api
/ functions
Functions
42 in github.com/Alorse/copilot-to-api
⨍
Functions
42
◇
Types & classes
8
↳
Endpoints
4
↓ 3 callers
Method
makeRequest
(options, data = null)
copilot-client.js:25
↓ 3 callers
Method
makeRequest
(options, data = null, isStream = false)
server.js:24
↓ 2 callers
Method
chatCompletion
(messages, options = {})
copilot-client.js:110
↓ 2 callers
Method
chat_completion
Send a chat completion request
copilot_client.py:78
↓ 2 callers
Method
ensureValidToken
()
copilot-client.js:83
↓ 2 callers
Method
ensureValidToken
()
server.js:89
↓ 2 callers
Method
ensure_valid_token
Ensure we have a valid Copilot token
server.py:58
↓ 2 callers
Method
ensure_valid_token
Ensure we have a valid Copilot token
copilot_client.py:56
↓ 2 callers
Function
showHelp
()
copilot-client.js:138
↓ 2 callers
Function
show_help
Show help message
copilot_client.py:110
↓ 1 callers
Method
chatCompletion
(messages, options = {})
server.js:116
↓ 1 callers
Method
chat_completion
Send a chat completion request
server.py:80
↓ 1 callers
Function
generate_stream
()
server.py:209
↓ 1 callers
Method
getModels
()
copilot-client.js:92
↓ 1 callers
Method
getModels
()
server.js:98
↓ 1 callers
Method
getValidToken
()
server-proxy.js:72
↓ 1 callers
Method
get_models
Get available Copilot models
server.py:65
↓ 1 callers
Method
get_models
Get available Copilot models
copilot_client.py:63
↓ 1 callers
Method
loadConfig
()
copilot-client.js:15
↓ 1 callers
Method
loadConfig
()
server-proxy.js:15
↓ 1 callers
Method
loadConfig
()
server.js:14
↓ 1 callers
Method
load_config
Load configuration from JSON file
server.py:19
↓ 1 callers
Method
load_config
Load configuration from JSON file
copilot_client.py:18
↓ 1 callers
Function
main
()
copilot-client.js:166
↓ 1 callers
Function
main
Main function
copilot_client.py:138
↓ 1 callers
Method
refreshCopilotToken
()
copilot-client.js:50
↓ 1 callers
Method
refreshCopilotToken
()
server-proxy.js:25
↓ 1 callers
Method
refreshCopilotToken
()
server.js:55
↓ 1 callers
Method
refresh_copilot_token
Refresh the Copilot token using the access token
server.py:28
↓ 1 callers
Method
refresh_copilot_token
Refresh the Copilot token using the access token
copilot_client.py:27
Method
__init__
(self, config_path: str = './config.json')
server.py:13
Method
__init__
(self, config_path: str = './config.json')
copilot_client.py:12
Function
chat_completions
()
server.py:174
Method
constructor
(configPath = './config.json')
copilot-client.js:8
Method
constructor
(configPath = './config.json')
server-proxy.js:8
Method
constructor
(configPath = './config.json')
server.js:7
Function
get_models
()
server.py:148
Function
health
()
server.py:139
Function
internal_error
(error)
server.py:286
Function
log_request
()
server.py:134
Function
not_found
(error)
server.py:275
Function
root
()
server.py:260