()
| 79 | } |
| 80 | |
| 81 | func (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. |
| 87 | func (c *GitHubModelsClient) SendPrompt(ctx context.Context, prompt string, history []models.Message, maxTokens int) (string, error) { |