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": {
Type: jsonschema.String,
Enum: []string{"celcius", "fahrenheit"},
Enum: []string{"celsius", "fahrenheit"},
},
},
Required: []string{"location"},

View File

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

View File

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