Hello,
Im new here, so sorry for my lack of knowledge
im trying to integrate the audio2face-2d api in python. For others models, there is example in many language:
Like here NVIDIA NIM | llama-3_1-405b-instruct
from openai import OpenAI
client = OpenAI(
base_url = "https://integrate.api.nvidia.com/v1",
api_key = "$API_KEY_REQUIRED_IF_EXECUTING_OUTSIDE_NGC"
)
completion = client.chat.completions.create(
model="meta/llama-3.1-405b-instruct",
messages=[{"role":"user","content":"Write a limerick about the wonders of GPU computing."}],
temperature=0.2,
top_p=0.7,
max_tokens=1024,
stream=True
)
for chunk in completion:
if chunk.choices[0].delta.content is not None:
print(chunk.choices[0].delta.content, end="")
But i can’t seems to find the example for this model:
Could someone help me.