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

[Bug]: Getting UnprocessableEntityError on running python quick start snippet #872

Closed
1 task done
Dream-gamer opened this issue Nov 22, 2024 · 2 comments · Fixed by #875
Closed
1 task done

[Bug]: Getting UnprocessableEntityError on running python quick start snippet #872

Dream-gamer opened this issue Nov 22, 2024 · 2 comments · Fixed by #875
Labels
bug Something isn't working

Comments

@Dream-gamer
Copy link

📜 Description

On running the code from python quick start section of readme, I am getting the error
UnprocessableEntityError: Error code: 422 - {'errors': ['Field required'], 'offending_input': {'name': 'research_wikipedia', 'integration': {'provider': 'wikipedia', 'method': 'search'}}, 'location': ['tools', 0, 'type']}

👟 Reproduction steps

Steps to reproduce:

  1. Copy the python quick start code from https://github.com/julep-ai/julep?tab=readme-ov-file#python-quick-start- in colab
  2. Insert the julep api key and run the cell, you will encounter this error

👀 Have you searched previous issues to see if this has been raised before?

  • I checked and didn't find similar issue
@Dream-gamer Dream-gamer added the bug Something isn't working label Nov 22, 2024
@patcher9
Copy link

Facing the same issue ^

@HamadaSalhab
Copy link
Contributor

HamadaSalhab commented Nov 23, 2024

@Dream-gamer @patcher9 Thanks for reporting this issue. I've just merged #875 that fixes it. You can copy the same block from the README, it should work.

If you're interested about what was wrong:

Previously we allowed defining tools without the type attribute as it was inferred from the tool spec itself. However, now we are requiring the type attribute to be present in the tool definition. So for the example in the README, changing the research_wikipedia tool definition to this will fix the error you guys got.

tools:
  - name: research_wikipedia
    type: integration # <--- Added this
    integration:
      provider: wikipedia
      method: search

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