Skip to content

Feat/self hosted models #213

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

Open
wants to merge 43 commits into
base: main
Choose a base branch
from
Open

Feat/self hosted models #213

wants to merge 43 commits into from

Conversation

diogoncalves
Copy link
Collaborator

LLMstudio Version X.X.X

What was done in this PR:

  • ...

How it was tested:

  • ...

Additional notes:

  • Any breaking changes?
  • Any new dependencies added?
  • Any performance improvements?

MiNeves00 and others added 30 commits December 18, 2024 10:42
* chore: added unit tests for core provider. small bugfix on calculate_metrics of provider

* added unit tests and docstring for join chunks

* added unit tests and docstrings for calculate_cost on provider

* added unit tests and docstrings for input_to_string on provider

* added unit tests and docstrings for chat and achat

* added unit tests and docstrings for chat and achat

* chore: cleaned provider unit tests

* chore: separated provider tests into different files. fixed some of its tests

* chore: linted code

* chore: deleted some comments

* chore: linted

* chore: Added Azure Provider Unit Tests (#176)

* chore: added unit tests for azure provider

* chore: added more unit tests and docstrings on azure, removed redundant comments

* chore: added unit tests for generate client on Azure Provider

* chore: separated azure unit tests into separate files. fixed some of its tests.

* chore: linted code

* chore: new line

Signed-off-by: Diogo Goncalves <[email protected]>

---------

Signed-off-by: Diogo Goncalves <[email protected]>
Co-authored-by: Diogo Goncalves <[email protected]>
* [feat] prompt management

* [feat] testing

* [feat] only one active prompt
## LLMstudio Version X.X.X

### What was done in this PR:

- ...

### How it was tested:

- ...

### Additional notes:

- Any breaking changes?
- Any new dependencies added?
- Any performance improvements?
Signed-off-by: Diogo Goncalves <[email protected]>
* feat: collects usage from stream and non stream openai calls

* chore: refactored to provider to have a Metrics obj

* feat: calculate_metrics now takes into account cached & reasoning tokens. Prices of openai models updated

* fix: added caching tokens to model config obj

* chore: added integration test for cache and reasoning

* chore: added integration test for usage retrieval when max tokens reached

* chore: uncommented runs from examples/core.py

* fix: bugfix regarding usage on function calling. added a test for this

* chore: merged with develop

* chore: extracted provider data structures to another file

* chore: renamed to private methods some within provider. splitted integration tests into 2 files

* chore: deletion of a todo comment
* feat: added support for bedrock nova models

* feat: tokens are now read from usage if available to ensure accuracy

* chore: removed duplicated integration tests folder in wrong place

* feat: refactored bedrock provider into being a single file instead of folder

* chore: renamed bedrock to bedrock-converse in examples/core.py

* chore: renamed bedrock in config.yaml
actions-user and others added 12 commits February 12, 2025 09:47
updated llmstudio-tracker version

Signed-off-by: Miguel Neves <[email protected]>
* feat: added converse-api support for images in input. started making an integration test for this.

* chore: added integration test for converse image sending

* chore: send images integration test now also tests for openai

* chore: integration test of send_imgs added async testing

* chore: updated examples core.py to also have send images

* feat: bedrock image input is now same contract as openai

* chore: ChatCompletionLLMstudio print now hides large image bytes for readability

* chore: fixes in the pretty print of ChatCompletionLLMstudio

* chore: small fix in examples/core.py

* fix: test_send_imgs had bug on reading env

* chore: made clean_print optional on chatcompletions; image from url is directly converted to bytes
@diogoncalves diogoncalves self-assigned this Mar 5, 2025
Base automatically changed from develop to main April 21, 2025 13:40
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