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

name 'datetime' is not defined when tool is running #37

Open
mistersupri opened this issue Dec 15, 2024 · 0 comments
Open

name 'datetime' is not defined when tool is running #37

mistersupri opened this issue Dec 15, 2024 · 0 comments

Comments

@mistersupri
Copy link

Description

I activated the tools and functions but I'm testing the Run Code tool so that the code can be run automatically. when I follow the given example, I get an error like this "name 'datetime' is not defined".

General information

  • Open WebUI version: 0.4.8
  • Tool/function version: 0.8.0
  • Open WebUI setup:
    • Kernel information: Linux ZimaCube 6.6.48 Kubernetes function support?  #1 SMP PREEMPT_DYNAMIC Mon Dec 2 11:39:30 UTC 2024 x86_64 GNU/Linux
    • Runtime: Docker
    • Docker version: 27.0.3
    • docker run command: docker run -d -p 3000:8080 -v open-webui:/app/backend/data --name open-webui ghcr.io/open-webui/open-webui:ollama
      • Docker container info: attached (docker info.txt)

Debug logs

To get debug logs, please follow these steps:

  1. Enable debug logging in the tool or function by changing self._debug = False to self._debug = True in the code.
  2. Reproduce the issue in a new chat session.
  3. Download the chat session (triple-dot menu → DownloadExport chat (json))
  4. Attach the resulting .json file to this bug report.

Additional context

image
image
docker info.txt
chat-export-1734231140002.json

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

1 participant