https://github.com/projectsaturnstudios/llmspeak-hugging-face
A Laravel package for integrating HuggingFace-hosted Models into LLMSpeak
https://github.com/projectsaturnstudios/llmspeak-hugging-face
Last synced: about 2 months ago
JSON representation
A Laravel package for integrating HuggingFace-hosted Models into LLMSpeak
- Host: GitHub
- URL: https://github.com/projectsaturnstudios/llmspeak-hugging-face
- Owner: projectsaturnstudios
- Created: 2025-07-06T16:10:16.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-15T02:09:35.000Z (12 months ago)
- Last Synced: 2026-02-13T06:31:56.855Z (5 months ago)
- Language: PHP
- Size: 12.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```php
use LLMSpeak\HuggingFace\Support\Facades\HuggingFace;
HuggingFace::completions() <--- HuggingFaceCompletionsAPIRepository Instance
->withApiKey($config['api_key']) <--- HuggingFaceCompletionsAPIRepository Instance
->withModel($model) <--- HuggingFaceCompletionsAPIRepository Instance
->withMaxTokens($max_tokens) <--- HuggingFaceCompletionsAPIRepository Instance
->withTools($temperature) <--- HuggingFaceCompletionsAPIRepository Instance
->withTemperature($temperature) <--- HuggingFaceCompletionsAPIRepository Instance
->withMessages($messages) <--- CompletionsEndpoint Instance
->handle();
HuggingFace::embeddings()
->withApikey(HuggingFace::api_key())
->withModel($model)
->withInputs($convo)
->handle();
```