Skip to content

Commit 9e70c38

Browse files
authored
Fix typos (#1312)
Fix typos
1 parent 78ca931 commit 9e70c38

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
</p>
1111

1212
```ts
13-
// Programatically interact with the Hub
13+
// Programmatically interact with the Hub
1414

1515
await createRepo({
1616
repo: { type: "model", name: "my-user/nlp-model" },

packages/agents/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const agent = new HfAgent(
5858

5959

6060
#### From your own endpoints
61-
You can also specify your own endpoint, as long as it implements the same API, for exemple using [text generation inference](https://github.com/huggingface/text-generation-inference) and [Inference Endpoints](https://huggingface.co/inference-endpoints).
61+
You can also specify your own endpoint, as long as it implements the same API, for example using [text generation inference](https://github.com/huggingface/text-generation-inference) and [Inference Endpoints](https://huggingface.co/inference-endpoints).
6262

6363
```ts
6464
import { HfAgent, LLMFromEndpoint } from "@huggingface/agents";

packages/hub/src/lib/oauth-login-url.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,12 @@ export async function oauthLoginUrl(opts?: {
109109
if (opts?.localStorage) {
110110
if (opts.localStorage.codeVerifier !== undefined && opts.localStorage.codeVerifier !== null) {
111111
throw new Error(
112-
"localStorage.codeVerifier must be a initially set to null or undefined, and will be filled by oauthLoginUrl"
112+
"localStorage.codeVerifier must be initially set to null or undefined, and will be filled by oauthLoginUrl"
113113
);
114114
}
115115
if (opts.localStorage.nonce !== undefined && opts.localStorage.nonce !== null) {
116116
throw new Error(
117-
"localStorage.nonce must be a initially set to null or undefined, and will be filled by oauthLoginUrl"
117+
"localStorage.nonce must be initially set to null or undefined, and will be filled by oauthLoginUrl"
118118
);
119119
}
120120
opts.localStorage.codeVerifier = newCodeVerifier;

packages/hub/src/types/api/api-model.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ Also encode config params into the name if relevant.
117117
[x: string]: string;
118118
};
119119
/**
120-
* [Automatically computed, do not set] Dynamically overriden by huggingface in API calls to indicate if it was verified by Hugging Face.
120+
* [Automatically computed, do not set] Dynamically overridden by huggingface in API calls to indicate if it was verified by Hugging Face.
121121
*/
122122
verified?: boolean;
123123
/**

packages/inference/test/vcr.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ async function tapeToResponse(tape: Tape) {
6666
}
6767

6868
/**
69-
* Headers are volontarily skipped for now. They are not useful to distinguish requests
70-
* but bring more complexity because some of them are not deterministics like "date"
69+
* Headers are voluntarily skipped for now. They are not useful to distinguish requests
70+
* but bring more complexity because some of them are not deterministic like "date"
7171
* and it's complex to handle all the formats they can be given in.
7272
*/
7373
async function hashRequest(url: string, init: RequestInit): Promise<string> {
@@ -93,7 +93,7 @@ async function hashRequest(url: string, init: RequestInit): Promise<string> {
9393
}
9494

9595
/**
96-
* This function behavior change according to the value of the VCR_MODE environment variable:
96+
* This function behavior changes according to the value of the VCR_MODE environment variable:
9797
* - record: requests will be made to the external API and responses will be saved in files
9898
* - playback: answers will be read from the filesystem, if they don't have been recorded before then an error will be thrown
9999
* - cache: same as playback but if the response is not found in the filesystem then it will be recorded
@@ -208,7 +208,7 @@ async function vcr(
208208
const { writeFileSync } = await import("node:fs");
209209
writeFileSync(`./test/${TAPES_FILE}`, JSON.stringify(tapes, null, 2));
210210

211-
// Return a new response with an unconsummed body
211+
// Return a new response with an unconsumed body
212212
return tapeToResponse(tape);
213213
}
214214

0 commit comments

Comments
 (0)