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

Support LLama3.1 #2

Open
0xRichardH opened this issue Aug 3, 2024 · 1 comment
Open

Support LLama3.1 #2

0xRichardH opened this issue Aug 3, 2024 · 1 comment
Assignees

Comments

@0xRichardH
Copy link
Owner

0xRichardH commented Aug 3, 2024

Prompt

"please act as a dictionary, including the pronunciation, explanation, two examples of sentences, and one image. And the word is `incentivize`. please output the result in json format, the json keys are `word`, `pronunciation`, `definition`, `examples`, and `image`.
image

CURL request

curl http://localhost:11434/api/generate -d '{
  "model": "llama3.1",
  "prompt": "please act as a dictionary, including the pronunciation, explanation, two examples of sentences, and one image. And the word is `incentivize`. please output the result in json format, the json keys are `word`, `pronunciation`, `definition`, `examples`, and `image`.",
  "stream": false,
  "format": "json"
}'

JSON Response

{
  "word": "incentivize",
  "pronunciation": "/ɪnˈsɛntɪvaɪz/",
  "definition": "to give someone a reason or motivation to do something, especially by offering them benefits or rewards for their
efforts.",
  "examples": [
    "The company decided to incentivize its employees with bonuses for meeting sales targets.",
    "The government introduced policies to incentivize people to use public transport and reduce carbon emissions."
  ],
  "image": {
    "src": "https://upload.wikimedia.org/wikipedia/commons/thumb/3/38/Business_incentives.jpg/800px-Business_incentives.jpg",
    "alt": "Incentives for businesses"
  }
}
@0xRichardH 0xRichardH self-assigned this Aug 3, 2024
0xRichardH added a commit that referenced this issue Aug 4, 2024
0xRichardH added a commit that referenced this issue Aug 4, 2024
* refactor(dictionary): extract dictionary trait

#2

* chore(readme): update the way to load the unpacked plugin
@thelazyoxymoron
Copy link

+1

Would love to get support for local models via ollama

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

2 participants