Skip to content

ryanhellyer/gitmeh-api

Repository files navigation

Gitmeh API

This application provides a free API for gitmeh, an automatic git commit tool I made.

This API uses the Gemma 3-4b model, which is extremely cost-effective, allowing me to provide this service for free to users of gitmeh. The application acts as a proxy, routing requests through its own API to protect the underlying AI provider's API key from being exposed or abused by end-users.

Uses PHP 8.5 and Laravel 13.

Tests

./vendor/bin/pint --test

Static analysis

./vendor/bin/phpstan analyse

API test

Use this command to test the API.

curl -skS --request POST \
  --header 'Content-Type: text/plain; charset=UTF-8' \
  --data-binary $'diff --git a/README.md b/README.md\n--- a/README.md\n+++
  b/README.md\n@@ -4,6 +4,11 @@\n ## Intro\n \n Short description.\n+\n+###
  GITMEH_PROBE_OK\n+\n+Document the /gitmeh smoke test: POST a unified diff
  as plain text.\n+\n ## License\n' \
  'https://ai.hellyer.kiwi/gitmeh'

Unit tests

php artisan test tests/Unit

Feature tests

php artisan test tests/Feature

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors