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

The following huggingface example returns strange results #4182

Closed
vga91 opened this issue Sep 4, 2024 · 0 comments
Closed

The following huggingface example returns strange results #4182

vga91 opened this issue Sep 4, 2024 · 0 comments

Comments

@vga91
Copy link
Collaborator

vga91 commented Sep 4, 2024

The following huggingface example, placed in openai.adoc,
returns strange results, e.g. orange or 事件! asking why should I be thankful!

CALL apoc.ml.openai.completion('What color is the sky? Answer in one word: ', $huggingFaceApiKey, 
{endpoint: 'https://api-inference.huggingface.co/models/gpt2', apiType: 'HUGGINGFACE', model: 'gpt2', path: ''})
@vga91 vga91 moved this to In Progress in APOC Extended Larus Sep 4, 2024
RobertoSannino pushed a commit that referenced this issue Oct 7, 2024
* Fixes #4182: The huggingface examples return strange results

* changes review and removed unused imports
@vga91 vga91 closed this as completed Oct 8, 2024
@github-project-automation github-project-automation bot moved this from In Progress to Done (to cherry-pick) in APOC Extended Larus Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done (to cherry-pick)
Development

No branches or pull requests

1 participant