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

Add model resolution to PromptHost interface #800

Merged
merged 4 commits into from
Oct 30, 2024
Merged

Add model resolution to PromptHost interface #800

merged 4 commits into from
Oct 30, 2024

Conversation

pelikhan
Copy link
Member

@pelikhan pelikhan commented Oct 30, 2024

Introduce a new method for resolving language models within the PromptHost interface, enhancing the ability to retrieve model configurations. Additionally, add a new script for production deployment.


Pull Request Description

Summary of Changes

  • 🔄 Refactor Language Model Configuration:

    • LanguageModelConfiguration now extends LanguageModelReference, streamlining the model configuration structure.
  • 🆕 Introduce Language Model Resolution:

    • Added a new method resolveLanguageModel to the PromptHost interface for resolving language model aliases to their provider and model configurations.
  • 📦 Enhance Prompt Context:

    • Integrated resolveModelConnectionInfo to support dynamic language model resolution within the prompt context.
  • 🗂️ New Sample File:

    • Created resolvemodel.genai.mjs to demonstrate the usage of the new language model resolution functionality.

These changes enhance the flexibility and clarity of language model management within the system.

generated by prd

@pelikhan pelikhan merged commit 6438330 into main Oct 30, 2024
10 checks passed
@pelikhan pelikhan deleted the resolvemodel branch October 30, 2024 18:41
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