An open API service indexing awesome lists of open source software.

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

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();
```