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

feat(OpenRouter): Added Meta Llama 3 Models #216

Merged
merged 36 commits into from
Apr 20, 2024
Merged

Conversation

gunpal5
Copy link
Contributor

@gunpal5 gunpal5 commented Apr 20, 2024

Added Llama 3 Models:
Llama 3 8B: MetaLlama38BInstructModel
Llama 3 70B: MetaLlama370BInstructModel
Llama 3 8B (Nitro): MetaLlama38BInstructNitroModel
Llama 3 70B (Nitro): MetaLlama370BInstructNitroModel

Summary by CodeRabbit

  • New Features

    • Updated and optimized the model configurations, including additions, removals, and modifications to improve performance and accuracy.
  • Refactor

    • Renamed and reorganized model classes to enhance clarity and maintainability.
  • Tests

    • Updated test cases to reflect changes in model configurations and naming.

…nd some code rearrangements and refactoring.
Copy link
Contributor

sweep-ai bot commented Apr 20, 2024

Apply Sweep Rules to your PR?

  • Apply: All new business logic should have corresponding unit tests.
  • Apply: Refactor large functions to be more modular.
  • Apply: Add docstrings to all functions and file headers.

This is an automated message generated by Sweep AI.

Copy link
Contributor

coderabbitai bot commented Apr 20, 2024

Walkthrough

The updates primarily involve modifications to the model management system of the OpenRouter, including changes to model definitions, configurations, and related tests. New models were introduced, some were removed, and others were renamed, ensuring the system’s adaptability and precision in handling different models.

Changes

File Path Change Summary
.../OpenRouterModelProvider.cs Adjusted model definitions, parameters, and updated configurations; models added, removed, or modified.
.../Predefined/AllModels.cs Updated model mappings: additions, deletions, and renamings of model classes.
.../tests/OpenRouterTests.cs Updated enum value in tests from OpenChat35Free to Mistral7BInstructFree.

Poem

🐇💻 A CodeRabbit's Ode to Change 🌟

In the burrow of code, changes leap,
Where models dance and old ones sleep.
Renamed, reshaped, refreshed anew,
A hop, a skip in binary dew.
Cheers to paths that now diverge,
On bytes of progress, let us surge!


Recent Review Details

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 0966b71 and 2a5226a.
Files selected for processing (4)
  • src/Providers/OpenRouter/src/OpenRouterModelIds.cs (5 hunks)
  • src/Providers/OpenRouter/src/OpenRouterModelProvider.cs (1 hunks)
  • src/Providers/OpenRouter/src/Predefined/AllModels.cs (13 hunks)
  • src/Providers/OpenRouter/tests/OpenRouterTests.cs (1 hunks)
Files not summarized due to errors (1)
  • src/Providers/OpenRouter/src/OpenRouterModelIds.cs: Error: Message exceeds token limit
Files not reviewed due to errors (1)
  • (no review received)
Additional comments not posted (27)
src/Providers/OpenRouter/tests/OpenRouterTests.cs (1)

30-30: Update of enum value in test method appears correct.

src/Providers/OpenRouter/src/Predefined/AllModels.cs (22)

8-10: Ensure consistent documentation for new model classes.

Consider adding a brief description in the documentation comments for ToppyM7BFreeModel similar to other models, explaining the specific use or characteristics of this model.


13-15: Ensure consistent documentation for new model classes.

Consider adding a brief description in the documentation comments for Cinematika7BAlphaFreeModel similar to other models, explaining the specific use or characteristics of this model.


18-20: Ensure consistent documentation for new model classes.

Consider adding a brief description in the documentation comments for Psyfighter13BModel similar to other models, explaining the specific use or characteristics of this model.


78-80: Ensure consistent documentation for new model classes.

Consider adding a brief description in the documentation comments for MancerWeaverAlphaModel similar to other models, explaining the specific use or characteristics of this model.


83-85: Ensure consistent documentation for new model classes.

Consider adding a brief description in the documentation comments for Mixtral8X7BInstructModel similar to other models, explaining the specific use or characteristics of this model.


98-100: Ensure consistent documentation for new model classes.

Consider adding a brief description in the documentation comments for MetaCodellama34BInstructModel similar to other models, explaining the specific use or characteristics of this model.


108-110: Ensure consistent documentation for new model classes.

Consider adding a brief description in the documentation comments for PhindCodellama34BV2Model similar to other models, explaining the specific use or characteristics of this model.


168-170: Ensure consistent documentation for new model classes.

Consider adding a brief description in the documentation comments for NousHermes2Mixtral8X7BSftModel similar to other models, explaining the specific use or characteristics of this model.


208-210: Ensure consistent documentation for new model classes.

Consider adding a brief description in the documentation comments for OpenAiGpt4TurboPreviewModel similar to other models, explaining the specific use or characteristics of this model.


263-265: Ensure consistent documentation for new model classes.

Consider adding a brief description in the documentation comments for GoogleGeminiPro15PreviewModel similar to other models, explaining the specific use or characteristics of this model.


298-300: Ensure consistent documentation for new model classes.

Consider adding a brief description in the documentation comments for PerplexitySonar7BOnlineModel similar to other models, explaining the specific use or characteristics of this model.


368-370: Ensure consistent documentation for new model classes.

Consider adding a brief description in the documentation comments for Mythomax13BModel similar to other models, explaining the specific use or characteristics of this model.


378-380: Ensure consistent documentation for new model classes.

Consider adding a brief description in the documentation comments for ToppyM7BModel similar to other models, explaining the specific use or characteristics of this model.


383-385: Ensure consistent documentation for new model classes.

Consider adding a brief description in the documentation comments for Lzlv70BModel similar to other models, explaining the specific use or characteristics of this model.


398-400: Ensure consistent documentation for new model classes.

Consider adding a brief description in the documentation comments for NousHermes2Mixtral8X7BDpoModel similar to other models, explaining the specific use or characteristics of this model.


428-430: Ensure consistent documentation for new model classes.

Consider adding a brief description in the documentation comments for Zephyr141BA35bModel similar to other models, explaining the specific use or characteristics of this model.


433-435: Ensure consistent documentation for new model classes.

Consider adding a brief description in the documentation comments for MetaLlama38BInstructModel similar to other models, explaining the specific use or characteristics of this model.


438-440: Ensure consistent documentation for new model classes.

Consider adding a brief description in the documentation comments for MetaLlama370BInstructModel similar to other models, explaining the specific use or characteristics of this model.


543-545: Ensure consistent documentation for new model classes.

Consider adding a brief description in the documentation comments for ToppyM7BNitroModel similar to other models, explaining the specific use or characteristics of this model.


548-550: Ensure consistent documentation for new model classes.

Consider adding a brief description in the documentation comments for Wizardlm28X22bNitroModel similar to other models, explaining the specific use or characteristics of this model.


553-555: Ensure consistent documentation for new model classes.

Consider adding a brief description in the documentation comments for MetaLlama38BInstructNitroModel similar to other models, explaining the specific use or characteristics of this model.


558-560: Ensure consistent documentation for new model classes.

Consider adding a brief description in the documentation comments for MetaLlama370BInstructNitroModel similar to other models, explaining the specific use or characteristics of this model.

src/Providers/OpenRouter/src/OpenRouterModelIds.cs (4)

556-559: New model addition: MetaLlama38BInstruct.

This addition aligns with the PR objectives to introduce new Llama 3 models. The description is clear and specifies the model's use case and performance.


563-566: New model addition: MetaLlama370BInstruct.

This model is another variant of the Llama 3 series, optimized for high-quality dialogue use cases. The description is informative and aligns with the PR's objectives.


727-734: New model addition: MetaLlama38BInstructNitro.

This is the Nitro version of the MetaLlama38BInstruct, indicating a higher-throughput version. It's important to ensure that the performance enhancements are documented and tested.


730-734: New model addition: MetaLlama370BInstructNitro.

Similar to the 8B version, this 70B Nitro model is designed for high-throughput applications. The description is consistent with the other model entries and aligns with the PR's objectives.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@HavenDV HavenDV merged commit ae5b296 into tryAGI:main Apr 20, 2024
3 checks passed
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.

None yet

2 participants