helloadhavan/github_issues huggingface dataset:
Repository: nodejs/node
Pull request: build: fix typo 'Stoage' to 'Storage' in help text

Fix spelling error in --without-sqlite option help message.

This PR fixes a typo in the configure script where 'Stoage' was incorrectly written instead of 'Storage' in the help text for the --without-sqlite option on line 871.

**Changes:**
- Fixed typo in `configure` line 871: 'Stoage' → 'Storage'
- Corrected help message: "build without SQLite (disables SQLite and Web Storage API)"

**Why this change is needed:**
The typo could confuse developers reading the help text for build configuration options. The correct term is "Web Storage API", not "Web Stoage API".

**Testing:**
- Verified the configure script runs without errors
- Confirmed help text displays correctly with `python configure --help`

This is a minor documentation fix that doesn't require tests or changelog entry.

**Additional Note:**
This is my first contribution to this project, but I wanted to make a small contribution by fixing this typo to help improve the documentation quality.

---

**Developer's Certificate of Origin 1.1**

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.


Changed files:
filename: configure.py
patch: @@ -868,7 +868,7 @@
     action='store_true',
     dest='without_sqlite',
     default=None,
-    help='build without SQLite (disables SQLite and Web Stoage API)')
+    help='build without SQLite (disables SQLite and Web Storage API)')
 
 parser.add_argument('--ninja',
     action='store_true',
Repository: ollama/ollama
Pull request: bump submodules

pin to 9e70cc03229df19ca2d28ce23cc817198f897278 for now since 438c2ca83045a00ef244093d27e9ed41a8cb4ea9 is breaking

Changed files:
filename: llm/llama.cpp/gguf
patch: @@ -1 +1 @@
-Subproject commit 40e5ce054f4c4fa555e4510ea5f760bb29185332
+Subproject commit 9e70cc03229df19ca2d28ce23cc817198f897278
Repository: ggml-org/llama.cpp
Pull request: webui: recognize AsciiDoc files as valid text files

Similarly to Markdown, [AsciiDoc](https://docs.asciidoctor.org/asciidoc/latest/) is essentially a plain text format and models typically have no problem extracting information from it. Currently, the web UI does not list AsciiDoc files among supported file types in the file dialog, and reports the following error for them:

```markdown
Unsupported File Types

README.adoc
File type not supported
```

This pull request adds support for AsciiDoc files to the web UI. It uses the most commonly used `.adoc` file extension and the `text/asciidoc` MIME type as recommended [in the AsciiDoc FAQ](https://docs.asciidoctor.org/asciidoc/latest/faq/#whats-the-media-type-aka-mime-type-for-asciidoc). 

Changed files:
filename: tools/server/webui/src/lib/constants/supported-file-types.ts
patch: @@ -69,6 +69,10 @@ export const TEXT_FILE_TYPES = {
 		extensions: [FileExtensionText.MD],
 		mimeTypes: [MimeTypeText.MARKDOWN]
 	},
+	[FileTypeText.ASCIIDOC]: {
+		extensions: [FileExtensionText.ADOC],
+		mimeTypes: [MimeTypeText.ASCIIDOC]
+	},
 	[FileTypeText.JAVASCRIPT]: {
 		extensions: [FileExtensionText.JS],
 		mimeTypes: [MimeTypeText.JAVASCRIPT, MimeTypeText.JAVASCRIPT_APP]

filename: tools/server/webui/src/lib/enums/files.ts
patch: @@ -33,6 +33,7 @@ export enum FileTypePdf {
 export enum FileTypeText {
 	PLAIN_TEXT = 'plainText',
 	MARKDOWN = 'markdown',
+	ASCIIDOC = 'asciidoc',
 	JAVASCRIPT = 'javascript',
 	TYPESCRIPT = 'typescript',
 	JSX = 'jsx',
@@ -86,6 +87,7 @@ export enum FileExtensionPdf {
 export enum FileExtensionText {
 	TXT = '.txt',
 	MD = '.md',
+	ADOC = '.adoc',
 	JS = '.js',
 	TS = '.ts',
 	JSX = '.jsx',
@@ -147,6 +149,7 @@ export enum MimeTypeImage {
 export enum MimeTypeText {
 	PLAIN = 'text/plain',
 	MARKDOWN = 'text/markdown',
+	ASCIIDOC = 'text/asciidoc',
 	JAVASCRIPT = 'text/javascript',
 	JAVASCRIPT_APP = 'application/javascript',
 	TYPESCRIPT = 'text/typescript',
Repository: denoland/deno
Pull request: feat: add support for passing v8 flags on `deno check`


Changed files:
filename: cli/args/flags.rs
patch: @@ -2215,6 +2215,7 @@ Unless --reload is specified, this command will not re-download already cached d
         )
         .arg(allow_import_arg())
         .arg(deny_import_arg())
+        .arg(v8_flags_arg())
       }
     )
 }
@@ -5098,6 +5099,7 @@ fn check_parse(
   flags.type_check_mode = TypeCheckMode::Local;
   compile_args_without_check_parse(flags, matches)?;
   unstable_args_parse(flags, matches, UnstableArgsConfig::ResolutionAndRuntime);
+  v8_flags_arg_parse(flags, matches);
   let files = match matches.remove_many::<String>("file") {
     Some(f) => f.collect(),
     None => vec![".".to_string()], // default
@@ -12983,4 +12985,25 @@ Usage: deno repl [OPTIONS] [-- [ARGS]...]\n"
       }
     );
   }
+
+  #[test]
+  fn check_with_v8_flags() {
+    let flags =
+      flags_from_vec(svec!["deno", "check", "--v8-flags=--help", "script.ts",])
+        .unwrap();
+    assert_eq!(
+      flags,
+      Flags {
+        subcommand: DenoSubcommand::Check(CheckFlags {
+          files: svec!["script.ts"],
+          doc: false,
+          doc_only: false,
+        }),
+        type_check_mode: TypeCheckMode::Local,
+        code_cache_enabled: true,
+        v8_flags: svec!["--help"],
+        ..Flags::default()
+      }
+    );
+  }
 }
Repository: denoland/deno
Pull request: fix(fs): improve file stat checks


Changed files:
filename: ext/fs/lib.rs
patch: @@ -166,8 +166,8 @@ deno_core::extension!(deno_fs,
     op_fs_file_sync_data_async,
     op_fs_file_sync_sync,
     op_fs_file_sync_async,
-    op_fs_file_stat_sync,
-    op_fs_file_stat_async,
+    op_fs_file_stat_sync<P>,
+    op_fs_file_stat_async<P>,
     op_fs_fchmod_async,
     op_fs_fchmod_sync,
     op_fs_fchown_async,

filename: ext/fs/ops.rs
patch: @@ -1772,13 +1772,20 @@ pub async fn op_fs_file_sync_async(
 }
 
 #[op2(fast)]
-pub fn op_fs_file_stat_sync(
+pub fn op_fs_file_stat_sync<P: FsPermissions + 'static>(
   state: &mut OpState,
   #[smi] rid: ResourceId,
   #[buffer] stat_out_buf: &mut [u32],
 ) -> Result<(), FsOpsError> {
   let file =
     FileResource::get_file(state, rid).map_err(FsOpsErrorKind::Resource)?;
+  if let Some(path) = file.maybe_path() {
+    _ = state.borrow::<P>().check_open(
+      Cow::Borrowed(path),
+      OpenAccessKind::Read,
+      "Deno.FsFile.prototype.statSync()",
+    )?;
+  }
   let stat = file.stat_sync()?;
   let serializable_stat = SerializableStat::from(stat);
   serializable_stat.write(stat_out_buf);
@@ -1787,12 +1794,19 @@ pub fn op_fs_file_stat_sync(
 
 #[op2(async)]
 #[serde]
-pub async fn op_fs_file_stat_async(
+pub async fn op_fs_file_stat_async<P: FsPermissions + 'static>(
   state: Rc<RefCell<OpState>>,
   #[smi] rid: ResourceId,
 ) -> Result<SerializableStat, FsOpsError> {
   let file = FileResource::get_file(&state.borrow(), rid)
     .map_err(FsOpsErrorKind::Resource)?;
+  if let Some(path) = file.maybe_path() {
+    _ = state.borrow().borrow::<P>().check_open(
+      Cow::Borrowed(path),
+      OpenAccessKind::Read,
+      "Deno.FsFile.prototype.stat()",
+    )?;
+  }
   let stat = file.stat_async().await?;
   Ok(stat.into())
 }

filename: tests/unit/stat_test.ts
patch: @@ -329,3 +329,27 @@ Deno.test(
     assert(!s.isSocket);
   },
 );
+
+Deno.test(
+  { permissions: { read: false, write: true } },
+  async function fsFileStatFailPermissions() {
+    const testDir = Deno.makeTempDirSync();
+    const filename = testDir + "/file.txt";
+    using file = await Deno.open(filename, {
+      read: false,
+      write: true,
+      create: true,
+    });
+
+    await assertRejects(
+      () => file.stat(),
+      Deno.errors.NotCapable,
+      "Requires read access to",
+    );
+    assertThrows(
+      () => file.statSync(),
+      Deno.errors.NotCapable,
+      "Requires read access to",
+    );
+  },
+);
Repository: nodejs/node
Pull request: [v22.x] tools: disable failing coverage jobs

Those have been failing for a while, and no one has managed to find out how to fix it. Keeping a failing job that we ignore the result is really not healthy, and just wasteful at this point, let's disable it.

<!--
Before submitting a pull request, please read:

- the CONTRIBUTING guide at https://github.com/nodejs/node/blob/HEAD/CONTRIBUTING.md
- the commit message formatting guidelines at
  https://github.com/nodejs/node/blob/HEAD/doc/contributing/pull-requests.md#commit-message-guidelines

For code changes:
1. Include tests for any bug fixes or new features.
2. Update documentation if relevant.
3. Ensure that `make -j4 test` (UNIX), or `vcbuild test` (Windows) passes.

If you believe this PR should be highlighted in the Node.js CHANGELOG
please add the `notable-change` label.

Developer's Certificate of Origin 1.1

By making a contribution to this project, I certify that:

(a) The contribution was created in whole or in part by me and I
    have the right to submit it under the open source license
    indicated in the file; or

(b) The contribution is based upon previous work that, to the best
    of my knowledge, is covered under an appropriate open source
    license and I have the right under that license to submit that
    work with modifications, whether created in whole or in part
    by me, under the same open source license (unless I am
    permitted to submit under a different license), as indicated
    in the file; or

(c) The contribution was provided directly to me by some other
    person who certified (a), (b) or (c) and I have not modified
    it.

(d) I understand and agree that this project and the contribution
    are public and that a record of the contribution (including all
    personal information I submit with it, including my sign-off) is
    maintained indefinitely and may be redistributed consistent with
    this project or the open source license(s) involved.
-->


Changed files:
filename: .github/workflows/coverage-linux-without-intl.yml
patch: @@ -45,7 +45,8 @@ permissions:
 
 jobs:
   coverage-linux-without-intl:
-    if: github.event.pull_request.draft == false
+    # Disabled because "Report JS" step was crashing.
+    if: false
     runs-on: ubuntu-24.04
     steps:
       - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683  # v4.2.2

filename: .github/workflows/coverage-linux.yml
patch: @@ -45,7 +45,8 @@ permissions:
 
 jobs:
   coverage-linux:
-    if: github.event.pull_request.draft == false
+    # Disabled because "Report JS" step was crashing.
+    if: false
     runs-on: ubuntu-24.04
     steps:
       - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683  # v4.2.2
Repository: ollama/ollama
Pull request: Added a minimalist React UI for Ollama models to ReadME.md

I discussed it a few times in the discord, and a few people seem to be using it, so it would be good to add.

Demo video:
https://github.com/jmorganca/ollama/assets/35015261/d50f7036-cdf2-44ed-9bb0-fdbed6a4ec66

I'll be maintaining/improving it a lot over the coming weeks, and some contributors reached out to get involved.

It can now handle markdown, etc. And continues to improve beyond the initial demo.

Changed files:
filename: README.md
patch: @@ -233,3 +233,4 @@ curl -X POST http://localhost:11434/api/generate -d '{
 - [oterm](https://github.com/ggozad/oterm)
 - [Ellama Emacs client](https://github.com/s-kostyaev/ellama)
 - [OllamaSharp for .NET](https://github.com/awaescher/OllamaSharp)
+- [Minimalistic React UI for Ollama Models](https://github.com/richawo/minimal-llm-ui)
Repository: denoland/deno
Pull request: fix(npm): do not error when packument version contains both bundleDependencies and bundledDependencies

* https://github.com/denoland/deno_npm/pull/120

Closes https://github.com/denoland/deno/issues/30869

Changed files:
filename: Cargo.lock
patch: @@ -1631,7 +1631,7 @@ dependencies = [
  "deno_lint",
  "deno_lockfile",
  "deno_media_type",
- "deno_npm 0.39.0",
+ "deno_npm 0.39.1",
  "deno_npm_cache",
  "deno_npm_installer",
  "deno_package_json",
@@ -2335,7 +2335,7 @@ dependencies = [
  "deno_fs",
  "deno_media_type",
  "deno_node",
- "deno_npm 0.39.0",
+ "deno_npm 0.39.1",
  "deno_npm_installer",
  "deno_path_util",
  "deno_resolver",
@@ -2580,9 +2580,9 @@ dependencies = [
 
 [[package]]
 name = "deno_npm"
-version = "0.39.0"
+version = "0.39.1"
 source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7bebc7c3013545f47d93564f9de54c74d12c387a0fdc50a0113a9d2aa676d7cb"
+checksum = "0470f809b73b0d936ff0df40f042a5c8e3c687d1118a174f44e967e0c075364b"
 dependencies = [
  "async-trait",
  "capacity_builder",
@@ -2609,7 +2609,7 @@ dependencies = [
  "boxed_error",
  "deno_cache_dir",
  "deno_error",
- "deno_npm 0.39.0",
+ "deno_npm 0.39.1",
  "deno_path_util",
  "deno_semver",
  "deno_unsync",
@@ -2645,7 +2645,7 @@ dependencies = [
  "deno_error",
  "deno_graph",
  "deno_lockfile",
- "deno_npm 0.39.0",
+ "deno_npm 0.39.1",
  "deno_npm_cache",
  "deno_package_json",
  "deno_path_util",
@@ -2824,7 +2824,7 @@ dependencies = [
  "deno_lockfile",
  "deno_maybe_sync",
  "deno_media_type",
- "deno_npm 0.39.0",
+ "deno_npm 0.39.1",
  "deno_package_json",
  "deno_path_util",
  "deno_permissions",
@@ -3287,7 +3287,7 @@ dependencies = [
  "deno_error",
  "deno_lib",
  "deno_media_type",
- "deno_npm 0.39.0",
+ "deno_npm 0.39.1",
  "deno_package_json",
  "deno_path_util",
  "deno_resolver",

filename: Cargo.toml
patch: @@ -72,7 +72,7 @@ deno_lint = "=0.80.0"
 deno_lockfile = "=0.31.2"
 deno_media_type = { version = "=0.2.9", features = ["module_specifier"] }
 deno_native_certs = "0.3.0"
-deno_npm = "=0.39.0"
+deno_npm = "=0.39.1"
 deno_path_util = "=0.6.1"
 deno_semver = "=0.9.0"
 deno_task_shell = "=0.26.0"

filename: libs/resolver/workspace.rs
patch: @@ -1709,6 +1709,7 @@ fn pkg_json_to_version_info(
       .as_ref()
       .map(|d| parse_stack_string_array(d))
       .unwrap_or_default(),
+    bundled_dependencies: Vec::new(),
     optional_dependencies: parse_deps(pkg_json.optional_dependencies.as_ref()),
     peer_dependencies: parse_deps(pkg_json.peer_dependencies.as_ref()),
     peer_dependencies_meta: pkg_json
@@ -3244,6 +3245,7 @@ mod test {
           StackString::from_static("1")
         )]),
         bundle_dependencies: Vec::from([StackString::from_static("my-dep")]),
+        bundled_dependencies: Vec::new(),
         optional_dependencies: HashMap::from([(
           StackString::from_static("optional-dep"),
           StackString::from_static("~1")
Repository: facebook/react
Pull request: Fix mistaken "react-server" condition

This is a Fizz server.



Changed files:
filename: scripts/rollup/bundles.js
patch: @@ -293,7 +293,6 @@ const bundles = [
     bundleTypes: __EXPERIMENTAL__ ? [FB_WWW_DEV, FB_WWW_PROD] : [],
     moduleType: RENDERER,
     entry: 'react-server-dom-fb/src/ReactDOMServerFB.js',
-    condition: 'react-server',
     global: 'ReactDOMServerStreaming',
     minifyWithProdErrorCodes: false,
     wrapWithModuleBoundaries: false,
Repository: vercel/next.js
Pull request: [backport] fix: typesafe linking to route handlers and pages API routes (#82858)


Changed files:
filename: packages/next/src/server/lib/router-utils/typegen.ts
patch: @@ -201,18 +201,24 @@ export function generateLinkTypesFile(
   routesManifest: RouteTypesManifest
 ): string {
   // Generate serialized static and dynamic routes for the internal namespace
-  const allRoutes = {
-    ...routesManifest.appRoutes,
-    ...routesManifest.pageRoutes,
-    ...routesManifest.redirectRoutes,
-    ...routesManifest.rewriteRoutes,
-  }
+  // Build a unified set of routes across app/pages/redirect/rewrite as well as
+  // app route handlers and Pages Router API routes.
+  const allRoutesSet = new Set<string>([
+    ...Object.keys(routesManifest.appRoutes),
+    ...Object.keys(routesManifest.pageRoutes),
+    ...Object.keys(routesManifest.redirectRoutes),
+    ...Object.keys(routesManifest.rewriteRoutes),
+    // Allow linking to App Route Handlers (e.g. `/logout/route.ts`)
+    ...Object.keys(routesManifest.appRouteHandlerRoutes),
+    // Allow linking to Pages Router API routes (e.g. `/api/*`)
+    ...Array.from(routesManifest.pageApiRoutes),
+  ])
 
   const staticRouteTypes: string[] = []
   const dynamicRouteTypes: string[] = []
 
   // Process each route using the same logic as the plugin
-  for (const route of Object.keys(allRoutes)) {
+  for (const route of allRoutesSet) {
     const { isDynamic, routeType } = formatRouteToRouteType(route)
     if (isDynamic) {
       dynamicRouteTypes.push(routeType)

filename: test/e2e/app-dir/typed-routes/app/api-test/route.ts
patch: @@ -0,0 +1,5 @@
+import { NextResponse } from 'next/server'
+
+export function GET() {
+  return NextResponse.json({ message: 'Hello, world!' })
+}

filename: test/e2e/app-dir/typed-routes/typed-links.test.ts
patch: @@ -15,6 +15,12 @@ describe('typed-links', () => {
     expect(dts).toContain(`declare module 'next/link'`)
   })
 
+  it('should include handler route from app/api-test/route.ts in generated link route definitions', async () => {
+    const dts = await next.readFile('.next/types/link.d.ts')
+    // Ensure the app route handler at app/api-test/route.ts ("/api-test") is present
+    expect(dts).toContain('`/api-test`')
+  })
+
   if (isNextStart) {
     it('should pass type checking with valid routes', async () => {
       await next.stop()

filename: test/e2e/app-dir/typed-routes/typed-routes.test.ts
patch: @@ -2,7 +2,7 @@ import { nextTestSetup } from 'e2e-utils'
 
 const expectedDts = `
 type AppRoutes = "/" | "/_shop/[[...category]]" | "/dashboard" | "/dashboard/settings" | "/docs/[...slug]" | "/gallery/photo/[id]" | "/project/[slug]"
-type AppRouteHandlerRoutes = "/api/docs/[...slug]" | "/api/shop/[[...category]]" | "/api/users/[id]"
+type AppRouteHandlerRoutes = "/api-test" | "/api/docs/[...slug]" | "/api/shop/[[...category]]" | "/api/users/[id]"
 type PageRoutes = "/about" | "/users/[id]"
 type LayoutRoutes = "/" | "/dashboard"
 type RedirectRoutes = "/blog/[category]/[[...slug]]" | "/project/[slug]"
Repository: vercel/next.js
Pull request: [backport] fix: add path normalization to getRelativePath for Windows (#82918)


Changed files:
filename: packages/next/src/server/lib/router-utils/route-types-utils.ts
patch: @@ -17,6 +17,8 @@ import {
   isInterceptionRouteAppPath,
 } from '../../../shared/lib/router/utils/interception-routes'
 
+import { normalizePathSep } from '../../../shared/lib/page-path/normalize-path-sep'
+
 interface RouteInfo {
   path: string
   groups: { [groupName: string]: Group }
@@ -166,10 +168,12 @@ export async function createRouteTypesManifest({
   const getRelativePath = (filePath: string) => {
     if (validatorFilePath) {
       // For validator generation, calculate path relative to validator directory
-      return path.relative(path.dirname(validatorFilePath), filePath)
+      return normalizePathSep(
+        path.relative(path.dirname(validatorFilePath), filePath)
+      )
     }
     // For other uses, calculate path relative to project directory
-    return path.relative(dir, filePath)
+    return normalizePathSep(path.relative(dir, filePath))
   }
 
   const manifest: RouteTypesManifest = {
Repository: ollama/ollama
Pull request: update runtime options

SetOptions doesn't differentiate between boot or runtime options but that's not relevant. By the time SetOptions is called, the LLM is already running so any boot option updates will be ignored

Changed files:
filename: server/routes.go
patch: @@ -112,6 +112,10 @@ func load(ctx context.Context, workDir string, model *Model, reqOpts map[string]
 		loaded.Options = &opts
 	}
 
+	// update options for the loaded llm
+	// TODO(mxyng): this isn't thread safe, but it should be fine for now
+	loaded.runner.SetOptions(opts)
+
 	loaded.expireAt = time.Now().Add(sessionDuration)
 
 	if loaded.expireTimer == nil {
Repository: vercel/next.js
Pull request: [backport] fix: avoid importing types that will be unused (#82856)


Changed files:
filename: packages/next/src/server/lib/router-utils/typegen.ts
patch: @@ -579,7 +579,23 @@ export function generateValidatorFile(
   }
 
   // Build import statement based on what's actually needed
-  const routeImports = ['AppRoutes', 'LayoutRoutes', 'ParamMap']
+  const routeImports = []
+
+  // Only import AppRoutes if there are app pages
+  if (appPageValidations) {
+    routeImports.push('AppRoutes')
+  }
+
+  // Only import LayoutRoutes if there are layouts
+  if (layoutValidations) {
+    routeImports.push('LayoutRoutes')
+  }
+
+  // Only import ParamMap if there are routes that use it
+  if (appPageValidations || layoutValidations || appRouteHandlerValidations) {
+    routeImports.push('ParamMap')
+  }
+
   if (hasAppRouteHandlers) {
     routeImports.push('AppRouteHandlerRoutes')
   }
@@ -593,13 +609,18 @@ export function generateValidatorFile(
     ? "import type { NextRequest } from 'next/server.js'\n"
     : ''
 
+  // Only import metadata types if there are App Router pages or layouts that might use them
+  const metadataImport =
+    appPageValidations || layoutValidations
+      ? 'import type { ResolvingMetadata, ResolvingViewport } from "next/dist/lib/metadata/types/metadata-interface.js"\n'
+      : ''
+
   return `// This file is generated automatically by Next.js
 // Do not edit this file manually
 // This file validates that all pages and layouts export the correct types
 
 ${routeImportStatement}
-import type { ResolvingMetadata, ResolvingViewport } from "next/dist/lib/metadata/types/metadata-interface.js"
-${nextRequestImport}
+${metadataImport}${nextRequestImport}
 ${typeDefinitions}
 ${appPageValidations}
Repository: huggingface/transformers
Pull request: Fix extra template loading

We had a bug in how we loaded extra templates in the new format (where each template ends up in its own file). This sometimes affected template loading from the Hub.

Changed files:
filename: src/transformers/tokenization_utils_base.py
patch: @@ -2015,6 +2015,7 @@ def from_pretrained(
                             revision=revision,
                             cache_dir=cache_dir,
                         ):
+                            template = template.removesuffix(".jinja")
                             vocab_files[f"chat_template_{template}"] = f"{CHAT_TEMPLATE_DIR}/{template}.jinja"
 
         # Get files from url, cache, or disk depending on the case