Skip to content

Morph updates #5918

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

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

Morph updates #5918

wants to merge 1 commit into from

Conversation

RomneyDa
Copy link
Collaborator

Some morph updates

Incomplete, need openAI adapters

@RomneyDa RomneyDa requested a review from a team as a code owner May 30, 2025 22:38
@RomneyDa RomneyDa requested review from sestinj and removed request for a team May 30, 2025 22:38
Copy link

cubic-dev-ai bot commented May 30, 2025

Your cubic subscription is currently inactive. Please reactivate your subscription to receive AI reviews and use cubic.

Copy link

netlify bot commented May 30, 2025

Deploy Preview for continuedev ready!

Name Link
🔨 Latest commit 6b068c8
🔍 Latest deploy log https://app.netlify.com/projects/continuedev/deploys/683a33623bb22400085c94ff
😎 Deploy Preview https://deploy-preview-5918--continuedev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label May 30, 2025
@RomneyDa RomneyDa marked this pull request as draft May 30, 2025 22:39
Copy link

recurseml bot commented Jun 13, 2025

⚠️ Only 5 files will be analyzed due to processing limits.

}

const data = (await resp.json()) as any;
const results = data.results.sort((a: any, b: any) => a.index - b.index);
Copy link

Choose a reason for hiding this comment

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

The code assumes data.results exists and is an array without validation. If the API response doesn't include a 'results' property or if it's not an array, this will cause a runtime error. Additionally, using 'any' type for sort parameters loses type safety. The code should validate the response structure and use proper typing.


React with 👍 to tell me that this comment was useful, or 👎 if not (and I'll stop posting more comments like this in the future)

@@ -18,6 +18,7 @@ import BedrockImport from "./BedrockImport";
import Cerebras from "./Cerebras";
import Cloudflare from "./Cloudflare";
import Cohere from "./Cohere";
import Morph from "./Morph"
Copy link

Choose a reason for hiding this comment

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

The code attempts to import a non-existent module './Morph'. The Morph.ts file does not exist in the core/llm/llms directory. This will cause a runtime error when the module tries to load, as Node.js/TypeScript will fail to resolve the import. The module must be created before it can be imported.


React with 👍 to tell me that this comment was useful, or 👎 if not (and I'll stop posting more comments like this in the future)

@@ -116,6 +117,7 @@ export const LLMClasses = [
SiliconFlow,
Scaleway,
Relace,
Morph,
Copy link

Choose a reason for hiding this comment

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

Adding the non-existent Morph class to LLMClasses array will cause a runtime error. The Morph class is undefined since its module doesn't exist, and this will cause a runtime error when the array is used in llmFromDescription or llmFromProviderAndOptions functions. The Morph implementation must be created and properly implement the ILLM interface before being added to LLMClasses.


React with 👍 to tell me that this comment was useful, or 👎 if not (and I'll stop posting more comments like this in the future)

Copy link

recurseml bot commented Jun 13, 2025

😱 Found 3 issues. Time to roll up your sleeves! 😱

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:L This PR changes 100-499 lines, ignoring generated files.
Projects
Status: Todo
Development

Successfully merging this pull request may close these issues.

1 participant