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

Ollama AI (Fixed) #1298

Closed
3 tasks done
Daveee19 opened this issue May 28, 2024 · 7 comments
Closed
3 tasks done

Ollama AI (Fixed) #1298

Daveee19 opened this issue May 28, 2024 · 7 comments
Labels
✨ New extension A new extension

Comments

@Daveee19
Copy link

Daveee19 commented May 28, 2024

Description

This extension adds the functionality to your project to easily send requests to the "Ollama" AI, and get responses from it.

How to host your own server

  1. Go to https://ollama.com/download
  2. Choose your platform
  3. Install the way proper to your operating system
  4. Open your command prompt and type in the following: ollama pull llama3 (Note: Although llama3 is the newest version and I recommend you to use this one, you can select any other model offered on the Ollama website, just switch the llama3 to any other model name they listed there: https://ollama.com/library)
  5. After the installation is done, you can start running the server and use the model with ollama run llama3 (Note: Again, you can use any model name here that you have installed instead of llama3)

If you are stuck, NetworkChuck has a really cool video explaining everything you have to know for hosting your own server, I also followed this video to get mine working: https://youtu.be/Wjrdr0NU4Sk?t=182

How to customize models

You can read the official documentation for this on the official Ollama GitHub repo: https://github.com/ollama/ollama?tab=readme-ov-file#customize-a-prompt

How to use the extension

Create a simple action to send the following data to a Ollama AI server:

  • URL (The server's URL with port)
  • Model (The model you want to generate the response)
  • Prompt (The prompt you send to the server to reply to)

Here is an example action I also used in the example project

image

Caution

The speed of the response generation depends on the hardware the server is hosted on.

Checklist

  • I've followed all of the best practices.
  • I confirm that this extension can be integrated to this GitHub repository, distributed and MIT licensed.
  • I am aware that the extension may be updated by anyone, and do not need my explicit consent to do so.

What tier of review do you aim for your extension?

Reviewed

Example file

OllamaAIExample.zip

Extension file

OllamaAI.zip

@Daveee19 Daveee19 added the ✨ New extension A new extension label May 28, 2024
Copy link
Contributor

👋 Thanks for your submission! We are sorry, but the filename of the extension has unrecognized characters. Since filenames with weird character can cause all kinds of problems and security flaws, our system won't allow file names with other characters than normal latin upper- and lowercase characters or numbers. Additionally, the first character must be an uppercase character. Please update your original submission post with a new zip file containing your extension with another file name following those guidelines 🙏

1 similar comment
Copy link
Contributor

👋 Thanks for your submission! We are sorry, but the filename of the extension has unrecognized characters. Since filenames with weird character can cause all kinds of problems and security flaws, our system won't allow file names with other characters than normal latin upper- and lowercase characters or numbers. Additionally, the first character must be an uppercase character. Please update your original submission post with a new zip file containing your extension with another file name following those guidelines 🙏

Copy link
Contributor

👋 Thanks for your submission! Unfortunately, all submitted extensions have to meet some minimal quality standard - the extension best practices - and our system has found that your extension does not fully comply 😔. You can find all of those rules on the GDevelop wiki.

The following issues have been found by the system concerning the respect of those best practices by your extension:

  ⟶ ❌ [Filled out names and descriptions]: Required field 'description' of the extension description is not filled out!
  ⟶ ❌ [Internal name validity]: The internal name of the extension Ollama_AI is invalid! It should only contain normal latin upper- and lowercase characters and numbers. The first letter must be an uppercase character.
  ⟶ ❌ [Extension name consistency]: Extension filename should be exactly the name of the extension (with .json extension). Please rename 'OllamaAI.json' to 'Ollama_AI.json'.
  ⟶ ❌ [PascalCase for internals names]: Internal name 'request' should begin with an uppercase letter (Request)!
  ⟶ ❌ [Semantic versioning]: Version '1.0' is not a semantic versioning compliant version number!

Please update your original submission post with a new zip file containing your extensions updated to follow those guidelines 🙏

Copy link
Contributor

👋 Thanks for your submission! Unfortunately, all submitted extensions have to meet some minimal quality standard - the extension best practices - and our system has found that your extension does not fully comply 😔. You can find all of those rules on the GDevelop wiki.

The following issues have been found by the system concerning the respect of those best practices by your extension:

  ⟶ ❌ [PascalCase for internals names]: Internal name 'request' should begin with an uppercase letter (Request)!

Please update your original submission post with a new zip file containing your extensions updated to follow those guidelines 🙏

Copy link
Contributor

Hi @Daveee19! 👋 This submission has passed all required tests, and has been moved to a PR as part of our submission pipeline. You can see the progress of your submission on this page. Community submissions are not reviewed by default, so your extension should be added once we've checked that your submission doesn't contain malicious code without further intervention on your part. If you wish for your extension to be reviewed (and thereby moved to the list of reviewed extensions), please follow the instructions written on the README. Thanks again for your contribution to GDevelop!

Copy link
Contributor

👋 Thanks for your submission! Unfortunately, all submitted extensions have to meet some minimal quality standard - the extension best practices - and our system has found that your extension does not fully comply 😔. You can find all of those rules on the GDevelop wiki.

The following issues have been found by the system concerning the respect of those best practices by your extension:

  ⟶ ❌ [Dots in sentences]: Field 'description' of the function 'Request' misses a dot at the end of the sentence!

Please update your original submission post with a new zip file containing your extensions updated to follow those guidelines 🙏

@Daveee19 Daveee19 changed the title Ollama AI Ollama AI (Fixed) May 28, 2024
Copy link
Contributor

👋 Thanks for your submission! Unfortunately, all submitted extensions have to meet some minimal quality standard - the extension best practices - and our system has found that your extension does not fully comply 😔. You can find all of those rules on the GDevelop wiki.

The following issues have been found by the system concerning the respect of those best practices by your extension:

  ⟶ ❌ [Dots in sentences]: Field 'description' of the function 'Request' misses a dot at the end of the sentence!

Please update your original submission post with a new zip file containing your extensions updated to follow those guidelines 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
✨ New extension A new extension
Projects
None yet
Development

No branches or pull requests

1 participant