fix: LINT AGAIN

This commit is contained in:
Gabriel
2026-02-08 04:37:05 +00:00
committed by Peter Steinberger
parent f90a39e984
commit 3feb5d1f10
2 changed files with 9 additions and 6 deletions

View File

@@ -3,7 +3,7 @@ summary: "Use NVIDIA's OpenAI-compatible API in OpenClaw"
read_when:
- You want to use NVIDIA models in OpenClaw
- You need NVIDIA_API_KEY setup
title: 'NVIDIA'
title: "NVIDIA"
---
# NVIDIA
@@ -25,18 +25,18 @@ If you still pass `--token`, remember it lands in shell history and `ps` output;
```json5
{
env: { NVIDIA_API_KEY: 'nvapi-...' },
env: { NVIDIA_API_KEY: "nvapi-..." },
models: {
providers: {
nvidia: {
baseUrl: 'https://integrate.api.nvidia.com/v1',
api: 'openai-completions',
baseUrl: "https://integrate.api.nvidia.com/v1",
api: "openai-completions",
},
},
},
agents: {
defaults: {
model: { primary: 'nvidia/llama-3.1-nemotron-70b-instruct' },
model: { primary: "nvidia/llama-3.1-nemotron-70b-instruct" },
},
},
}

View File

@@ -3,7 +3,10 @@ import { tmpdir } from "node:os";
import { join } from "node:path";
import { describe, expect, it } from "vitest";
import { resolveApiKeyForProvider } from "./model-auth.js";
import { buildNvidiaProvider, resolveImplicitProviders } from "./models-config.providers.js";
import {
buildNvidiaProvider,
resolveImplicitProviders,
} from "./models-config.providers.js";
describe("NVIDIA provider", () => {
it("should include nvidia when NVIDIA_API_KEY is configured", async () => {