Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/eniompw/nvidia-nim

Example Code for using NVIDIA NIM APIs
https://github.com/eniompw/nvidia-nim

chatgpt llm nim nvidia

Last synced: about 2 months ago
JSON representation

Example Code for using NVIDIA NIM APIs

Awesome Lists containing this project

README

        

# NVIDIA-NIM

Example code for using NVIDIA NIM APIs

## Setup

1. Create a `.env` file in the project root:
```
NV_API_KEY=your-api-key-here
```

2. Install dependencies:
```bash
pip install -r requirements.txt
```

## Usage

This repository contains two example scripts:

1. `rest.py`: A simple REST API implementation
2. `openai.py`: An example using the OpenAI-compatible API

Run either script to test the NVIDIA NIM API:

```bash
python rest.py
# or
python openai.py
```

## References

- [NVIDIA NIM APIs Documentation](https://build.nvidia.com/explore/discover)
- [Available Models](https://build.nvidia.com/models)

## License

[MIT License](LICENSE)