You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Laravel package to provide access to the [Groq REST API](https://console.groq.com/docs) using the [Groq-PHP library](https://github.com/lucianotonet/groq-php).
2
4
3
-
This package provides integration for using the lucianotonet/groq-php package within Laravel 11 applications.
4
5
5
6
## Installation
6
7
@@ -10,31 +11,47 @@ You can install the package via composer:
10
11
composer require lucianotonet/groq-laravel
11
12
```
12
13
13
-
##Usage
14
+
### Set up your keys
14
15
15
-
### Groq Facade
16
+
Set your [Groq API key](https://console.groq.com/keys) on the `.env` file:
16
17
17
-
You can use the `Groq` facade to interact with the Groq package:
18
-
19
-
```php
20
-
use LucianoTonet\GroqLaravel\Facades\Groq;
18
+
```.env
19
+
GROQ_API_KEY=gsk_...
20
+
```
21
21
22
-
// Example usage
23
-
$result = Groq::query('your_groq_query_here');
22
+
If you need, you can set an alternative proxy base URL:
24
23
```
24
+
GROQ_API_BASE_URL=https://api.groq.com/openai/v1 # can be overitten by request
25
+
```
25
26
26
-
### GroqServiceProvider
27
+
##Usage
27
28
28
-
The `GroqServiceProvider` is automatically registered by Laravel and provides the binding for the `Groq` class:
29
+
### Groq Facade
30
+
31
+
You can use the `Groq` facade to interact with the Groq package:
0 commit comments