8000 refactor(copilot): integrate AI SDK for improved model handling by Red-Asuka · Pull Request #1877 · emqx/MQTTX · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

refactor(copilot): integrate AI SDK for improved model handling #1877

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

Merged
merged 7 commits into from
Feb 27, 2025

Conversation

Red-Asuka
Copy link
Member
@Red-Asuka Red-Asuka commented Feb 26, 2025

PR Checklist

If you have any questions, you can refer to the Contributing Guide

What is the current behavior?

Due to the previous low version of Node.js, we were limited to using the native fetch to call related model APIs, which made it difficult to maintain and update.

Issue Number

#1856

What is the new behavior?

  • Replace native fetch calls with Vercel AI SDK
  • Fix errors related to OpenAI API calls and update the model list
  • Integrate DeepSeek
  • Integrate Anthropic
  • Integrate xAI
  • Integrate SiliconFlow

Does this PR introduce a breaking change?

  • Yes
  • No

Specific Instructions

Are there any specific instructions or things that should be known prior to review?

Other information

@Red-Asuka Red-Asuka self-assigned this Feb 26, 2025
@Red-Asuka Red-Asuka added enhancement New feature or request desktop MQTTX Desktop labels Feb 26, 2025
@Red-Asuka Red-Asuka added this to the v1.12.0 milestone Feb 26, 2025
@Red-Asuka Red-Asuka requested a review from ysfscream February 27, 2025 06:24
@Red-Asuka Red-Asuka marked this pull request as ready for review February 27, 2025 06:24
Comment on lines +10 to +18
transpileDependencies: ['zod-to-json-schema'],
chainWebpack: (config) => {
config.module
.rule('mjs')
.test(/\.mjs$/)
.type('javascript/auto')
.include.add(/node_modules/)
.end()
},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We need a comment to explain the issue being addressed here, otherwise it will be confusing and we might forget later.

@github-project-automation github-project-automation bot moved this to In Progress in MQTTX Feb 27, 2025
@ysfscream ysfscream merged commit 94b27bf into main Feb 27, 2025
4 checks passed
@github-project-automation github-project-automation bot moved this from In Progress to Done in MQTTX Feb 27, 2025
@ysfscream ysfscream deleted the lyd/dev branch February 27, 2025 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
desktop MQTTX Desktop enhancement New feature or request
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants
0