Update version to v1.4.132 and commit

This commit is contained in:
github-actions[bot]
2025-02-02 13:50:30 +00:00
parent ff33c33ea5
commit d5a2008c44
3 changed files with 5 additions and 5 deletions

View File

@@ -46,7 +46,7 @@ func NewClient() (ret *Client) {
type Client struct {
*plugins.PluginBase
ApiBaseURL *plugins.SetupQuestion
ApiKey *plugins.SetupQuestion
ApiKey *plugins.SetupQuestion
maxTokens int
defaultRequiredUserMessage string
@@ -58,7 +58,7 @@ type Client struct {
func (an *Client) configure() (err error) {
if an.ApiBaseURL.Value != "" {
baseURL := an.ApiBaseURL.Value
// If the base URL contains a UUID, ensure it ends with /v1
if strings.Contains(baseURL, "-") && !strings.HasSuffix(baseURL, "/v1") {
if strings.HasSuffix(baseURL, "/") {
@@ -66,7 +66,7 @@ func (an *Client) configure() (err error) {
}
baseURL = baseURL + "/v1"
}
an.client = anthropic.NewClient(
option.WithAPIKey(an.ApiKey.Value),
option.WithBaseURL(baseURL),