Coder Social home page Coder Social logo

maximerenou / php-hugging-chat Goto Github PK

View Code? Open in Web Editor NEW
18.0 18.0 2.0 86 KB

๐Ÿšง Deprecated ๐Ÿšง HuggingChat PHP client (OpenAssistant's LLaMA)

License: MIT License

PHP 100.00%
ai chatbot huggingchat huggingface llama openassistant

php-hugging-chat's People

Contributors

maximerenou avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

php-hugging-chat's Issues

initConversation Error

Hi All,

After installing the latest version of php-hugging-chat-0.5.2, when starting "chat.php" in the example directory, the following error is output.
โ€PHP Fatal error: Uncaught Exception: Failed to init conversation in /var/www/html/php-hugging-chat-0.5.2/src/Conversation.php:87โ€

The error message tells us that the "Failed to init conversation" error occurred on line 87 of his Conversation.php. And this shows that the exception is thrown inside the initConversation method of the Conversation object.

Could you tell me how to deal with this?

Best regards,
Minoru Tanabe

Improvement request

Hello,
It's not an issue but an improvment if it's possible.

I tried your approach and I would know if can delete some words when some element from the answer:
example:
Question : Can you translate in French : Give me a SEO Title in less 50 characters about : : Iphone
Answer : Sure, here is a possible translation: "Top iPhone XS Max features for gaming" (43 characters) Let me know if you would like any further assistance.
Good approach : Top iPhone XS Max features for gaming

Else I suppose the model does have the capacities to translate in french

Thank you

Why deprecated?

Hi there! I think your project is very promising, especially now with the ability to selfhost chat-ui instances, but I noticed that it is marked as deprecated. Can you please let me know why? Thanks!

Fail if you are not using a callback

Conversation.php, on line 137 or something like that, should be:

if (isset($callback)) {
  $callback($this->current_text, $tokens);
}					

You assume there is a callback. No insanity-test, I know it is a blunder, just informing.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.