diff --git a/README.md b/README.md index 5ce885b23e..98ad912e81 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@

```ts -// Programatically interact with the Hub +// Programmatically interact with the Hub await createRepo({ repo: { type: "model", name: "my-user/nlp-model" }, diff --git a/packages/agents/README.md b/packages/agents/README.md index 601f01b7ad..f3c4108a5f 100644 --- a/packages/agents/README.md +++ b/packages/agents/README.md @@ -58,7 +58,7 @@ const agent = new HfAgent( #### From your own endpoints -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). +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). ```ts import { HfAgent, LLMFromEndpoint } from "@huggingface/agents"; diff --git a/packages/hub/src/lib/oauth-login-url.ts b/packages/hub/src/lib/oauth-login-url.ts index 9b8bca3f34..0594d09a13 100644 --- a/packages/hub/src/lib/oauth-login-url.ts +++ b/packages/hub/src/lib/oauth-login-url.ts @@ -109,12 +109,12 @@ export async function oauthLoginUrl(opts?: { if (opts?.localStorage) { if (opts.localStorage.codeVerifier !== undefined && opts.localStorage.codeVerifier !== null) { throw new Error( - "localStorage.codeVerifier must be a initially set to null or undefined, and will be filled by oauthLoginUrl" + "localStorage.codeVerifier must be initially set to null or undefined, and will be filled by oauthLoginUrl" ); } if (opts.localStorage.nonce !== undefined && opts.localStorage.nonce !== null) { throw new Error( - "localStorage.nonce must be a initially set to null or undefined, and will be filled by oauthLoginUrl" + "localStorage.nonce must be initially set to null or undefined, and will be filled by oauthLoginUrl" ); } opts.localStorage.codeVerifier = newCodeVerifier; diff --git a/packages/hub/src/types/api/api-model.ts b/packages/hub/src/types/api/api-model.ts index d4a81161af..5a052f69b2 100644 --- a/packages/hub/src/types/api/api-model.ts +++ b/packages/hub/src/types/api/api-model.ts @@ -117,7 +117,7 @@ Also encode config params into the name if relevant. [x: string]: string; }; /** - * [Automatically computed, do not set] Dynamically overriden by huggingface in API calls to indicate if it was verified by Hugging Face. + * [Automatically computed, do not set] Dynamically overridden by huggingface in API calls to indicate if it was verified by Hugging Face. */ verified?: boolean; /** diff --git a/packages/inference/test/vcr.ts b/packages/inference/test/vcr.ts index b32cdc2027..725fee67ad 100644 --- a/packages/inference/test/vcr.ts +++ b/packages/inference/test/vcr.ts @@ -66,8 +66,8 @@ async function tapeToResponse(tape: Tape) { } /** - * Headers are volontarily skipped for now. They are not useful to distinguish requests - * but bring more complexity because some of them are not deterministics like "date" + * Headers are voluntarily skipped for now. They are not useful to distinguish requests + * but bring more complexity because some of them are not deterministic like "date" * and it's complex to handle all the formats they can be given in. */ async function hashRequest(url: string, init: RequestInit): Promise { @@ -93,7 +93,7 @@ async function hashRequest(url: string, init: RequestInit): Promise { } /** - * This function behavior change according to the value of the VCR_MODE environment variable: + * This function behavior changes according to the value of the VCR_MODE environment variable: * - record: requests will be made to the external API and responses will be saved in files * - playback: answers will be read from the filesystem, if they don't have been recorded before then an error will be thrown * - 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( const { writeFileSync } = await import("node:fs"); writeFileSync(`./test/${TAPES_FILE}`, JSON.stringify(tapes, null, 2)); - // Return a new response with an unconsummed body + // Return a new response with an unconsumed body return tapeToResponse(tape); }