Commit Graph
25 Commits
Author SHA1 Message Date
furyhawk 196a573b8c feat: Generate TypeScript client for Ollama API using OpenAPI specification
- Added a new script `generate-ollama-client-simple.sh` for generating a simple TypeScript client using the existing OpenAPI tools.
- Created a comprehensive `generate-ollama-client.sh` script to generate a FastAPI client from the Ollama OpenAPI specification with support for axios.
- Introduced `generate_fastapi_client.py` to support generating FastAPI clients from OpenAPI specifications in multiple languages, including TypeScript and Python.
- Generated TypeScript types for the Ollama API endpoints in `types.gen.ts`.
- Included example usage files for both Python and TypeScript clients to demonstrate how to interact with the Ollama API.
2025-06-24 20:51:54 +08:00
furyhawk 23e798bb7c Refactor model loading script and add Ollama notebook
- Updated the Modelfile path in `pull-deepseek-model.sh` to use an absolute path for model files.
- Simplified the model loading process by removing unnecessary directory changes and directly referencing the mounted Modelfile.
- Added a new Jupyter notebook `ollama.ipynb` that demonstrates the usage of the Ollama API with a sample query and error handling for unsupported tools.
2025-06-16 15:41:55 +08:00
furyhawk 3cfd66a31b fix: Update container commands from Docker to Podman in pull-deepseek-model.sh 2025-06-16 13:17:47 +08:00
furyhawk 13698884f7 fix: Update container check from Docker to Podman in LlamaCPP script 2025-06-15 09:11:35 +08:00
furyhawk a3710d70a7 fix: Improve huggingface-hub installation process with enhanced logging and fallback methods 2025-06-15 08:50:28 +08:00
furyhawk 4136655e74 fix: Enhance huggingface-hub installation process with improved error handling and fallback options 2025-06-15 08:45:16 +08:00
furyhawk 3177afddba fix: Improve huggingface-hub installation process and add error handling 2025-06-15 08:44:03 +08:00
furyhawk a8dad3debe fix: Update model file references and enhance Dockerfile for LlamaCPP setup 2025-06-15 08:29:42 +08:00
furyhawk e9dc288cef Add Ollama Docker setup and model management scripts
- Created README.md for Ollama Docker setup with instructions for running and using models.
- Added docker-compose.yml for Ollama service configuration.
- Introduced scripts for model setup, including pulling models from Hugging Face and loading them into Ollama.
- Implemented AI launcher script to choose between Ollama and LlamaCPP backends.
- Added GPU support scripts for LlamaCPP with detailed logging and error handling.
- Included simple model pull script for easier model management.
- Established a structured approach for model management and integration with Ollama API.
2025-06-14 21:31:16 +08:00
furyhawk 11f83042ae Add toggle_nvidia.sh script for managing NVIDIA persistence mode and performance state
This script allows users to easily enable or disable NVIDIA persistence mode and adjust the performance state of the GPU. It includes options to set the clock speeds and reload the NVIDIA Unified Memory kernel module. Usage instructions are provided for clarity.
2025-06-03 13:18:36 +08:00
furyhawk 4e4408ad38 ⬆ Add WeatherService for two-hour forecast and update types for weather data 2025-05-16 22:11:49 +08:00
Patrick ArminioandGitHub 953e9e5416 ♻️ Remove modify id script in favor of openapi-ts config (#1434) 2024-11-27 12:42:44 +01:00
Sebastián RamírezandGitHub 9b2e5813ae 🔨 Update generate-client.sh script, make it fail on errors, fix generation (#1360) 2024-09-23 22:36:14 +02:00
Sebastián RamírezandGitHub 87254dd79e 🚚 Move location of scripts to simplify file structure (#1352) 2024-09-22 18:19:57 +02:00
AlejandraandGitHub bbad34aa8d 👷🏻 Auto-generate frontend client (#1320) 2024-08-29 20:10:49 +02:00
Sebastián RamírezandGitHub ed9958bc1e ♻️ Refactor code structure for tests (#674) 2024-03-11 16:49:35 +00:00
Sebastián RamírezandGitHub 07064ae5e0 📝 Update deployment files and docs (#660) 2024-03-09 00:41:13 +00:00
Sebastián RamírezandGitHub 4c1f75ce72 📝 Refactor README into separate README.md files for backend, frontend, deployment, development (#639) 2024-03-07 19:49:43 +00:00
8558cf00a2 ♻ Move project source files to top level from src, update Sentry dependency (#630)
Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2024-03-07 16:35:33 +00:00
Sebastián RamírezandGitHub a065f9c9e8 🔥 Clean up old files no longer relevant (#608) 2024-02-25 17:50:12 +01:00
Sebastián RamírezandGitHub f09fb854bf 🔧 Simplify scripts and development (#155)
* 🔧 Update scripts and configs

* 🔧 Add shebang to script

* 🔥 Remove test and dev configs, pass inline

*  Add local development dev-link set up

* 📝 Update generated docs with refactor

* 📝 Add Contributing guide
2020-04-19 20:19:25 +02:00
Sebastián RamírezandGitHub a7d3671a72 ♻️ Simplify env files, merge to one .env (#151) 2020-04-19 09:17:14 +02:00
c8bcc0ba0a Use Poetry for package management (#144)
* use poetry insted of Pipfile

* fix python black version

* set prepare.sh as executable

* revert postgres 11

* use multi-build stage in docker

* fix poetry path

* 🔥 Remove uneeded changes

* 🔧 Move and update Poetry file

* 🙈 Update gitignore

* 🐳 Update Dockerfiles to use Poetry

* 🐳 Update Dockerfiles with Poetry

* 🔧 Add SERVER_NAME required by Celery worker

* 🐳 Update Poetry install to avoid env conflicts

*  Add Pytest to Poetry dependencies

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
2020-04-18 23:27:48 +02:00
Sebastián Ramírez 5dd83c6350 🔧 Update development scripts 2019-04-20 19:24:57 +04:00
Sebastián Ramírez 7f8bfc8faa 🎉 First commit, from couchbase generator, basic changes
not tested / updated yet
2019-02-09 19:42:36 +04:00