Environment variables
The Zak_ai HTTP client is configured exclusively through environment variables.
-
- Type
- string
- Default
- (empty)
The API key issued by Zak_ai after a successful registration. When empty, all authenticated API calls throw a
\Runtime.Exception Obtain the key by completing the registration wizard in the backend module.
-
- Type
- string
- Default
- (empty)
The secret associated with your Zak_ai account. Together with
ZAKAI_it forms the HTTP Basic Auth header sent with every authenticated request.API_ KEY
API base URL
The Zak_ai API base URL is defined in Configuration/Services.yaml.
To override it in a specific environment, rebind the service argument in your project's
Services.:
Wegewerk\Ai3Core\Api\ZakAiClient:
arguments:
$baseUrl: 'https://staging.zak-ai.com/api/v1/'
Or define to use another env-var:
Wegewerk\Ai3Core\Api\ZakAiClient:
arguments:
$baseUrl: '%env(ZAK_AI_BASE_URL)%'
Default model
The default inference model is mistral-, defined as the
DEFAULT_ constant in
\Wegewerk\. It is appended automatically to
every POST payload.
It is not detemined yet if this should be user configurable in the future.