What provider to set for build.nvidia.com? #3644
Answered
by
taniashiba
BenceBakos
asked this question in
Q&A
-
They provide python snippet as well: from openai import OpenAI
client = OpenAI(
base_url = "https://integrate.api.nvidia.com/v1",
api_key = "asd-123-asd"
)
completion = client.chat.completions.create(
model="deepseek-ai/deepseek-r1",
messages=[{"role":"user","content":""}],
temperature=0.6,
top_p=0.7,
max_tokens=4096,
stream=True
)
for chunk in completion:
if chunk.choices[0].delta.content is not None:
print(chunk.choices[0].delta.content, end="")
|
Beta Was this translation helpful? Give feedback.
Answered by
taniashiba
Jul 28, 2025
Replies: 1 comment 1 reply
-
Hi @BenceBakos ! I think setting it up as an OpenAI-cpmatible provider is best here. You can use environment variables:
Do you know where to get your API key for nvidia models? I think at build.nvidia.com under API you should be able to generate an API key to use in your config. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
taniashiba
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @BenceBakos !
I think setting it up as an OpenAI-cpmatible provider is best here.
You can use environment variables:
Do you know where to get your API key for nvidia models? I think at build.nvidia.com under API you should be able to generate an API key to use in your config.