Fixing typos (#706)

This commit is contained in:
Andreas Deininger
2024-04-13 13:32:38 +02:00
committed by GitHub
parent e0d0801ac7
commit ea551f422e
4 changed files with 5 additions and 5 deletions

View File

@@ -636,7 +636,7 @@ FunctionDefinition{
}, },
"unit": { "unit": {
Type: jsonschema.String, Type: jsonschema.String,
Enum: []string{"celcius", "fahrenheit"}, Enum: []string{"celsius", "fahrenheit"},
}, },
}, },
Required: []string{"location"}, Required: []string{"location"},

View File

@@ -181,7 +181,7 @@ func (c *Client) ListAssistants(
order *string, order *string,
after *string, after *string,
before *string, before *string,
) (reponse AssistantsList, err error) { ) (response AssistantsList, err error) {
urlValues := url.Values{} urlValues := url.Values{}
if limit != nil { if limit != nil {
urlValues.Add("limit", fmt.Sprintf("%d", *limit)) urlValues.Add("limit", fmt.Sprintf("%d", *limit))
@@ -208,7 +208,7 @@ func (c *Client) ListAssistants(
return return
} }
err = c.sendRequest(req, &reponse) err = c.sendRequest(req, &response)
return return
} }

View File

@@ -406,7 +406,7 @@ func TestClientReturnsRequestBuilderErrors(t *testing.T) {
} }
} }
func TestClientReturnsRequestBuilderErrorsAddtion(t *testing.T) { func TestClientReturnsRequestBuilderErrorsAddition(t *testing.T) {
config := DefaultConfig(test.GetTestToken()) config := DefaultConfig(test.GetTestToken())
client := NewClientWithConfig(config) client := NewClientWithConfig(config)
client.requestBuilder = &failingRequestBuilder{} client.requestBuilder = &failingRequestBuilder{}

View File

@@ -23,7 +23,7 @@ type InnerError struct {
ContentFilterResults ContentFilterResults `json:"content_filter_result,omitempty"` ContentFilterResults ContentFilterResults `json:"content_filter_result,omitempty"`
} }
// RequestError provides informations about generic request errors. // RequestError provides information about generic request errors.
type RequestError struct { type RequestError struct {
HTTPStatusCode int HTTPStatusCode int
Err error Err error