mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 07:37:27 +00:00
fix: LINT AGAIN
This commit is contained in:
committed by
Peter Steinberger
parent
f90a39e984
commit
3feb5d1f10
@@ -3,7 +3,7 @@ summary: "Use NVIDIA's OpenAI-compatible API in OpenClaw"
|
|||||||
read_when:
|
read_when:
|
||||||
- You want to use NVIDIA models in OpenClaw
|
- You want to use NVIDIA models in OpenClaw
|
||||||
- You need NVIDIA_API_KEY setup
|
- You need NVIDIA_API_KEY setup
|
||||||
title: 'NVIDIA'
|
title: "NVIDIA"
|
||||||
---
|
---
|
||||||
|
|
||||||
# NVIDIA
|
# NVIDIA
|
||||||
@@ -25,18 +25,18 @@ If you still pass `--token`, remember it lands in shell history and `ps` output;
|
|||||||
|
|
||||||
```json5
|
```json5
|
||||||
{
|
{
|
||||||
env: { NVIDIA_API_KEY: 'nvapi-...' },
|
env: { NVIDIA_API_KEY: "nvapi-..." },
|
||||||
models: {
|
models: {
|
||||||
providers: {
|
providers: {
|
||||||
nvidia: {
|
nvidia: {
|
||||||
baseUrl: 'https://integrate.api.nvidia.com/v1',
|
baseUrl: "https://integrate.api.nvidia.com/v1",
|
||||||
api: 'openai-completions',
|
api: "openai-completions",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
agents: {
|
agents: {
|
||||||
defaults: {
|
defaults: {
|
||||||
model: { primary: 'nvidia/llama-3.1-nemotron-70b-instruct' },
|
model: { primary: "nvidia/llama-3.1-nemotron-70b-instruct" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,7 +3,10 @@ import { tmpdir } from "node:os";
|
|||||||
import { join } from "node:path";
|
import { join } from "node:path";
|
||||||
import { describe, expect, it } from "vitest";
|
import { describe, expect, it } from "vitest";
|
||||||
import { resolveApiKeyForProvider } from "./model-auth.js";
|
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", () => {
|
describe("NVIDIA provider", () => {
|
||||||
it("should include nvidia when NVIDIA_API_KEY is configured", async () => {
|
it("should include nvidia when NVIDIA_API_KEY is configured", async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user