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

Add ChatBot for API Assistance  #608

Open
wants to merge 34 commits into
base: main
Choose a base branch
from
Open

Add ChatBot for API Assistance  #608

wants to merge 34 commits into from

Conversation

siddu015
Copy link

@siddu015 siddu015 commented Feb 23, 2025

PR Description

Implemented a ChatBot in API Dash with capabilities to explain APIs, debug requests, generate test cases, and provide sample codes, integrated using Ollama models and a dynamic UI widget.

Implementation Details:
• Integrated Ollama AI model via ollama_dart: ^0.2.2 (supports ollama3.2:3b for best accuracy).
• Added a floating ChatBot widget (?) for quick access.
• Responses formatted using flutter_markdown for readability.

Setup:
1. Add dependency ollama_dart: ^0.2.2.
2. Ensure Ollama AI is installed locally.
3. Update the "model:'' variable in generateResponse function in /lib/services/ollama_service.dart to use your local Ollama model.
4. Run flutter run to experience the AI ChatBot in API Dash!

Related Issues: #605

Checklist

  • I have gone through the contributing guide
  • I have updated my branch and synced it with project main branch before making this PR
  • I am using the latest Flutter stable branch (run flutter upgrade and verify)
  • I have run the tests (flutter test) and all tests are passing

Added/updated tests?

We encourage you to add relevant test cases.

  • Yes
  • No, and this is why: please replace this line with details on why tests have not been included

OS on which you have developed and tested the feature?

  • Windows
  • macOS
  • Linux

@siddu015
Copy link
Author

For detailed documentation, refer to the Notion Doc

@ashitaprasad ashitaprasad linked an issue Feb 23, 2025 that may be closed by this pull request
@ashitaprasad
Copy link
Member

What have you done @siddu015?
This PR was your teams submission in FOSS HACK and was being reviewed.
It should not have been touched.

@siddu015 siddu015 reopened this Mar 5, 2025
@siddu015
Copy link
Author

siddu015 commented Mar 5, 2025

@ashitaprasad I apologize for the confusion with the pull requests. While working on the Dashbot issue, I have created a new pull request from the same forked repository, which unexpectedly closed the previous one. I've since closed that newly created pull request to minimize disruption.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add ChatBot for API Assistance
3 participants