Skip to content

feature: mira network integration with the current lux codebase#253

Merged
rparcus merged 8 commits into
Spectral-Finance:mainfrom
yash2002vardhan:feature/mira-network-integration
May 14, 2025
Merged

feature: mira network integration with the current lux codebase#253
rparcus merged 8 commits into
Spectral-Finance:mainfrom
yash2002vardhan:feature/mira-network-integration

Conversation

@yash2002vardhan

Copy link
Copy Markdown
Contributor

Mira Network Integration

Overview

Integrated Mira Network as a new LLM provider in the Lux framework.

Features

  • Chat completions support with various LLM's
  • Streaming and non-streaming response handling
  • Function calling capabilities
  • Lux response schema compliance
  • Token usage tracking
  • Comprehensive error handling

Implementation Details

  • Follows existing provider patterns (OpenAI, Anthropic, TogetherAI)
  • Environment-based configuration (MIRA_API_KEY)
  • Integration tests and example usage script included

Testing

  • Unit tests for provider functionality
  • Integration tests for API interaction
  • Example script for quick testing

Comment thread config/config.exs Outdated

# ... existing code ...

config :lux, :api_keys,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This can't be here :)

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please add the config to runtime.exs

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Please also add dummy values to .envrc and similar files

Comment thread test/scripts/test_mira.exs Outdated
}

# Test a simple completion
case Mira.call("What is the capital of France?", [], config) do

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Is this some integration test? If yes, please just add it under integration tests folder and let's use the IntegratioCase

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I have addressed the concerns in the last commit. Please review them; let me know if anything needs to be changed.

Comment thread lux/config/runtime.exs Outdated
Signed-off-by: Robert Parcus <923630+rparcus@users.noreply.github.com>
@coveralls

coveralls commented May 14, 2025

Copy link
Copy Markdown

Pull Request Test Coverage Report for Build 8249105d4c909ecdad4f0e3e046c0bdbf648771c-PR-253

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+4.6%) to 8.296%

Totals Coverage Status
Change from base Build a773ce372f9dc812fc7a4c6877d2746eaff25503: 4.6%
Covered Lines: 316
Relevant Lines: 3809

💛 - Coveralls

@rparcus rparcus merged commit 55e2049 into Spectral-Finance:main May 14, 2025
6 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.

3 participants