MCPcopy Create free account
hub / github.com/diillson/chatcli / getModelsURL

Method getModelsURL

llm/githubmodels/github_models_client.go:81–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

79}
80
81func (c *GitHubModelsClient) getModelsURL() string {
82 apiURL := c.getAPIURL()
83 return strings.TrimSuffix(apiURL, "/chat/completions") + "/models"
84}
85
86// SendPrompt sends a prompt to the GitHub Models API.
87func (c *GitHubModelsClient) SendPrompt(ctx context.Context, prompt string, history []models.Message, maxTokens int) (string, error) {

Callers 1

ListModelsMethod · 0.95

Calls 1

getAPIURLMethod · 0.95

Tested by

no test coverage detected