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

⚓ refactor(loadConfigModels): Stricter Default Model Fallback #2239

Merged
merged 4 commits into from
Mar 29, 2024

Conversation

danny-avila
Copy link
Owner

Summary

Refactored the loadConfigModels function to return default models based on the endpoint, rather than the fetch basis. This change ensures that the correct default models are loaded for each endpoint.

  • Refactored loadConfigModels to return default models on an endpoint basis, instead of a fetch basis.
  • Updated loadConfigModels.spec to include stricter tests for default model matching, ensuring the new implementation adheres to the expected behavior.
  • Introduced the TEndpoint type/typedef for better code readability and maintainability.

Change Type

  • Bug fix (non-breaking change which fixes an issue)

Testing

Ensure that all tests, including the updated loadConfigModels.spec tests, pass successfully.

Checklist

  • My code adheres to this project's style guidelines
  • I have performed a self-review of my own code
  • I have commented in any complex areas of my code
  • I have made pertinent documentation changes
  • My changes do not introduce new warnings
  • I have written tests demonstrating that my changes are effective or that my feature works
  • Local unit tests pass with my changes
  • Any changes dependent on mine have been merged and published in downstream modules.

@danny-avila danny-avila merged commit dec7879 into main Mar 29, 2024
3 checks passed
@danny-avila danny-avila deleted the strict-default-models branch March 29, 2024 15:49
jinzishuai pushed a commit to aitok-ai/LibreChat that referenced this pull request May 20, 2024
…avila#2239)

* chore: add TEndpoint type/typedef

* refactor(loadConfigModels.spec): stricter default model matching (fails with current impl.)

* refactor(loadConfigModels): return default models on endpoint basis and not fetch basis

* refactor: rename `uniqueKeyToNameMap` to `uniqueKeyToEndpointsMap` for clarity
kenshinsamue pushed a commit to intelequia/LibreChat that referenced this pull request Sep 17, 2024
…avila#2239)

* chore: add TEndpoint type/typedef

* refactor(loadConfigModels.spec): stricter default model matching (fails with current impl.)

* refactor(loadConfigModels): return default models on endpoint basis and not fetch basis

* refactor: rename `uniqueKeyToNameMap` to `uniqueKeyToEndpointsMap` for clarity
BertKiv pushed a commit to BertKiv/LibreChat that referenced this pull request Dec 10, 2024
…avila#2239)

* chore: add TEndpoint type/typedef

* refactor(loadConfigModels.spec): stricter default model matching (fails with current impl.)

* refactor(loadConfigModels): return default models on endpoint basis and not fetch basis

* refactor: rename `uniqueKeyToNameMap` to `uniqueKeyToEndpointsMap` for clarity
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