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

🐛 / ✨ / ♻️ Decouple OpenAI Dependency, Standardize LLM & Agent Returns, Implement Chat History #6

Merged
merged 4 commits into from
Dec 31, 2024

Conversation

MFA-X-AI
Copy link
Member

@MFA-X-AI MFA-X-AI commented Dec 30, 2024

Description

This PR:

  • remove OpenAI as a dependency.
  • Return GradioFnReturn to simplicity and adds GradioChatFnReturn which accepts a LLM-like response and work with GradioChatInterface
  • properly implements Chat history
  • temporarily removes image support from GradioChatInterface (we can re-add it once it is properly implemented)
  • ensure GradioChatExample and GradioAgentExample works.

References

#3

Pull Request Type

  • Xircuits Component Library Code
  • Workflow Example
  • Documentation
  • Others (Please Specify)

Type of Change

  • New feature (non-breaking change which adds functionality)
  • Bug fix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Tests

Run GradioChatExample and GradioAgentExample. Ensure that:

  1. it works as expected from chat interface
  2. remembers the previous message

Tested on?

  • Windows
  • Linux Ubuntu
  • Centos
  • Mac
  • Others (State here -> xxx )

Notes

This requires an update for the front readme. We'll also need to give a users a heads up that they will need the OpenAI component library for the chat example, and OpenAI + Agents for the agent example. Also for Agents, tell them they will need a key for the weather.

@MFA-X-AI MFA-X-AI changed the title Decouple openai 🐛 / ✨ / ♻️ Decouple OpenAI Dependency, Standardize LLM & Agent Returns, Implement Chat History Dec 30, 2024
@MFA-X-AI MFA-X-AI merged commit 89d78fb into main Dec 31, 2024
2 checks passed
@MFA-X-AI MFA-X-AI deleted the decouple-openai branch December 31, 2024 09:00
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

Successfully merging this pull request may close these issues.

1 participant