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

Error in 05-local-execution on MacOS #206

Closed
jamescalam opened this issue Mar 15, 2024 · 3 comments · Fixed by #211
Closed

Error in 05-local-execution on MacOS #206

jamescalam opened this issue Mar 15, 2024 · 3 comments · Fixed by #211
Assignees
Labels
bug Something isn't working

Comments

@jamescalam
Copy link
Member

Trying to run /docs/05-local-execution.ipynb notebook on Mac throws the following error:

TypeError: Llama.create_chat_completion() missing 1 required positional argument: 'self'

When running:

out = rl("what's the time in New York right now?")
print(out)
get_time(**out.function_call)
@jamescalam jamescalam added the bug Something isn't working label Mar 15, 2024
@jamescalam jamescalam self-assigned this Mar 15, 2024
@bruvduroiu
Copy link
Member

bruvduroiu commented Mar 18, 2024

Seems like a LangChain llama-cpp-python error

@bruvduroiu bruvduroiu self-assigned this Mar 18, 2024
@mafs12
Copy link

mafs12 commented Mar 21, 2024

llm in LlamaCppLLM is set to llama_cpp.Llama here, but create_chat_completion() is not a class method.

@bruvduroiu
Copy link
Member

Thanks for the spot @mafs12 , seems like this bug was introduced by #190. Working on a fix

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants