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

Migrate to ChatGPT from Gemini API #15

Merged
merged 11 commits into from
Jun 5, 2024
Merged

Migrate to ChatGPT from Gemini API #15

merged 11 commits into from
Jun 5, 2024

Conversation

xuelink
Copy link
Member

@xuelink xuelink commented Jun 5, 2024

🚀 : Migrate to ChatGPT from Gemini API

Fixes #14

This pull request migrates the project from using the Gemini API to ChatGPT for AI tasks. It includes the following changes:

  • Updated .env.sample with OPENAI_API_KEY

  • Added OpenAI chat completion functionality

  • Updated .env.sample with OPENAI_API_KEY and OPENAI_ASSISTANT_ID

  • Updated .env.sample with OPENAI_API_KEY and OPENAI_ASSISTANT_ID

  • Updated OpenAI integration in aiHandler.js

  • Removed OpenAI integration from openai.js

  • Updated appwrite.json with event trigger for document creation

  • Updated handleInteraction function to parse AI response as JSON

  • Updated handleInteraction function to parse AI response as JSON

  • Improved interaction reply formatting in bot.js

Please review and merge this pull request to complete the migration to ChatGPT.

@xuelink xuelink merged commit 77d1233 into main Jun 5, 2024
@xuelink xuelink deleted the xuelink/issue14 branch June 5, 2024 10:21
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.

🚀 : Migrate to ChatGPT from Gemini API
1 participant