Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</p>

```ts
// Programatically interact with the Hub
// Programmatically interact with the Hub

await createRepo({
repo: { type: "model", name: "my-user/nlp-model" },
Expand Down
2 changes: 1 addition & 1 deletion packages/agents/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
4 changes: 2 additions & 2 deletions packages/hub/src/lib/oauth-login-url.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion packages/hub/src/types/api/api-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
/**
Expand Down
8 changes: 4 additions & 4 deletions packages/inference/test/vcr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string> {
Expand All @@ -93,7 +93,7 @@ async function hashRequest(url: string, init: RequestInit): Promise<string> {
}

/**
* 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
Expand Down Expand Up @@ -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);
}

Expand Down