This repository provides a simple guide to setting up and using the Deepseek API with Ollama, LangChain, and FastAPI.
Before you begin, ensure you have the following installed:
- Python (3.8+ recommended)
- Pip (Python package manager)
Download and install Ollama from here.
Open a terminal or command prompt and run:
ollama pull deepseek-r1:8bRun the following commands to install necessary dependencies:
pip install -qU langchain-openai
pip install -qU langchain-ollama
pip install -qU fastapiStart the FastAPI server by running:
uvicorn main:app --reloadOpen your browser and navigate to:
http://127.0.0.1:8000/translate/{word_to_translate}
Replace {word_to_translate} with the English word you want to translate.
This project is open-source and available under the MIT License.
Feel free to fork this repository and submit pull requests with improvements or bug fixes.
For questions or support, open an issue on GitHub or contact me at ig @programmerplatmerah