Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undefined type 'DeepseekClient'. #5

Open
whitespacecode opened this issue Jan 29, 2025 · 0 comments
Open

Undefined type 'DeepseekClient'. #5

whitespacecode opened this issue Jan 29, 2025 · 0 comments

Comments

@whitespacecode
Copy link

whitespacecode commented Jan 29, 2025

I'm getting a type error on using DeepseekClient::class.

Image

use DeepseekClient;

public function send(string $message)
{
     $deepseek = app(DeepseekClient::class);

     $response = $deepseek
            ->query($system_prompt, 'system')
            ->query($message, 'user')
            ->withModel("deepseek-chat")
            ->setTemperature(1.3)
            ->run();
}

Would it be possible we can import using a facade instead? Example:

use DeepseekPhp\DeepseekLaravel\Facades\DeepseekLaravel;

public function send(string $message)
{
     $response = DeepseekLaravel::query($system_prompt, 'system')
            ->query($message, 'user')
            ->withModel("deepseek-chat")
            ->setTemperature(1.3)
            ->run();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant