llm-speak / hugging-face
A Laravel package for integrating HuggingFace-hosted Models into LLMSpeak
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
pkg:composer/llm-speak/hugging-face
Requires
- php: ^8.2
README
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();