diff --git a/pkgs/fabric/version.nix b/pkgs/fabric/version.nix index c224821a..13e5fa8f 100644 --- a/pkgs/fabric/version.nix +++ b/pkgs/fabric/version.nix @@ -1 +1 @@ -"1.4.131" +"1.4.132" diff --git a/plugins/ai/anthropic/anthropic.go b/plugins/ai/anthropic/anthropic.go index c52a93a8..e85abb90 100644 --- a/plugins/ai/anthropic/anthropic.go +++ b/plugins/ai/anthropic/anthropic.go @@ -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), diff --git a/version.go b/version.go index 35506026..77b00f1d 100644 --- a/version.go +++ b/version.go @@ -1,3 +1,3 @@ package main -var version = "v1.4.131" +var version = "v1.4.132"