Datasets:
Download BOT/render-main/test.py from ysn-rfd/text-dataset-tiny-code-script-py-format: direct link, hf CLI and curl.
- Browser
- Download file 500 Bytes
-
https://huggingface.co/datasets/ysn-rfd/text-dataset-tiny-code-script-py-format/resolve/main/BOT/render-main/test.py
- Command line
-
hf download hf://datasets/ysn-rfd/text-dataset-tiny-code-script-py-format/BOT/render-main/test.py
-
curl -L -o test.py https://huggingface.co/datasets/ysn-rfd/text-dataset-tiny-code-script-py-format/resolve/main/BOT/render-main/test.py
500 Bytes
| from openai import OpenAI | |
| client = OpenAI( | |
| base_url="https://api.featherless.ai/v1", | |
| api_key="rc_4bb6c9bd28931d1a92836edd6a91f971da5ce2d4477a693eb2d760eb37f02c4b", | |
| ) | |
| response = client.chat.completions.create( | |
| model='mlabonne/NeuralDaredevil-8B-abliterated', | |
| messages=[ | |
| {"role": "system", "content": "تو یک دستیار فارسی زبان هستی"}, | |
| {"role": "user", "content": "سلام"} | |
| ], | |
| ) | |
| print(response.model_dump()['choices'][0]['message']['content']) | |