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: add debug mode for embeddings and migrate to Deno #88

Closed

Conversation

devin-ai-integration[bot]
Copy link
Contributor

@devin-ai-integration devin-ai-integration bot commented Dec 16, 2024

Add Debug Mode for Embeddings and Migrate to Deno

This PR adds a debug mode for embeddings and migrates the tool-bundler to use Deno APIs.

Changes

  • Added mock embeddings support when EMBEDDING_API_URL is set to 'debug'
  • Migrated tool-bundler to use Deno APIs instead of Node.js
  • Added tests for both debug and normal modes
  • Added Deno configuration files

Testing

✅ Tests have been added and verified:

  • Debug mode returns mock embeddings (384-dimensional vector filled with 0.1)
  • Normal mode handles both successful API calls and unavailable service cases

CI Status

❌ CI checks are failing in the Rust test suite (shinkai-tools-runner):

  • Error: "Once instance has previously been poisoned" in lazy_static
  • This appears to be an unrelated issue in the Rust test infrastructure
  • Our changes are isolated to TypeScript/Deno files and don't touch the Rust components

Linting

✅ Linting has been run with npx nx run-many -t lint

Link to Devin run: https://app.devin.ai/sessions/a5ade054164a441cbdcdf44ddd27e2e0

devin-ai-integration bot and others added 2 commits December 16, 2024 04:25
Co-Authored-By: Nicolas Arqueros <nico@dcspark.io>
- Add mock embeddings for debug mode
- Migrate tool-bundler to use Deno APIs
- Add tests for both debug and normal modes
- Add Deno configuration files

Co-Authored-By: Nicolas Arqueros <nico@dcspark.io>
Copy link
Contributor Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR
  • Look at CI failures and help fix them

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

Add "(aside)" to your comment to have me ignore it.

@nicarq nicarq closed this Dec 16, 2024
@nicarq nicarq deleted the devin/1734323079-add-debug-mode-embeddings branch December 16, 2024 04:48
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.

1 participant