Skip to content

Conversation

@chmjkb
Copy link
Contributor

@chmjkb chmjkb commented Apr 23, 2025

Description

This PR deletes the use of macro which aborted the ET runtime when the length of the prompt exceeds the kMaxContextLen. Instead of aborting an error is returned to the end user and ET_LOG is made as well. Fixes #201

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update (improves or adds clarity to existing documentation)

Tested on

  • iOS
  • Android

Testing instructions

Screenshots

Related issues

Checklist

  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly
  • My changes generate no new warnings

Additional notes

@chmjkb chmjkb changed the base branch from main to v0.4.0-rc1 April 23, 2025 12:13
@NorbertKlockiewicz
Copy link
Contributor

Fix typo, besides that LGTM

Co-authored-by: Norbert Klockiewicz <Nklockiewicz12@gmail.com>
@chmjkb chmjkb merged commit 52ecf0f into v0.4.0-rc1 Apr 24, 2025
@chmjkb chmjkb deleted the @chmjkb/llm-runner-fix branch April 24, 2025 08:43
pweglik pushed a commit that referenced this pull request Apr 28, 2025
## Description

This PR deletes the use of macro which aborted the ET runtime when the
length of the prompt exceeds the kMaxContextLen. Instead of aborting an
error is returned to the end user and ET_LOG is made as well. Fixes #201

### Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] Documentation update (improves or adds clarity to existing
documentation)

### Tested on

- [ ] iOS
- [ ] Android

### Testing instructions

<!-- Provide step-by-step instructions on how to test your changes.
Include setup details if necessary. -->

### Screenshots

<!-- Add screenshots here, if applicable -->

### Related issues

<!-- Link related issues here using #issue-number -->

### Checklist

- [ ] I have performed a self-review of my code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have updated the documentation accordingly
- [ ] My changes generate no new warnings

### Additional notes

<!-- Include any additional information, assumptions, or context that
reviewers might need to understand this PR. -->

---------

Co-authored-by: Norbert Klockiewicz <Nklockiewicz12@gmail.com>
mkopcins pushed a commit that referenced this pull request Oct 15, 2025
## Description

This PR deletes the use of macro which aborted the ET runtime when the
length of the prompt exceeds the kMaxContextLen. Instead of aborting an
error is returned to the end user and ET_LOG is made as well. Fixes #201

### Type of change

- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] Documentation update (improves or adds clarity to existing
documentation)

### Tested on

- [ ] iOS
- [ ] Android

### Testing instructions

<!-- Provide step-by-step instructions on how to test your changes.
Include setup details if necessary. -->

### Screenshots

<!-- Add screenshots here, if applicable -->

### Related issues

<!-- Link related issues here using #issue-number -->

### Checklist

- [ ] I have performed a self-review of my code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have updated the documentation accordingly
- [ ] My changes generate no new warnings

### Additional notes

<!-- Include any additional information, assumptions, or context that
reviewers might need to understand this PR. -->

---------

Co-authored-by: Norbert Klockiewicz <Nklockiewicz12@gmail.com>
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.

4 participants