nim
nim
¶
NVIDIA NIM inference engine — self-hosted inference microservices.
Classes¶
NIMEngine
¶
Bases: InferenceEngine
NVIDIA NIM inference engine.
Supports local and remote NIM deployments with OpenAI-compatible API. Requires NIM_API_KEY for NVIDIA-hosted NIM endpoints, optional for self-hosted.
Source code in src/openjarvis/engine/nim.py
Functions¶
stream_full
async
¶
stream_full(messages: Sequence[Message], *, model: str, temperature: float = 0.7, max_tokens: int = 1024, **kwargs: Any) -> AsyncIterator['StreamChunk']
Yield StreamChunks with content, tool_calls, and finish_reason.