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

Select llm model from list #331

Conversation

Leidtier
Copy link
Contributor

@Leidtier Leidtier commented Jul 28, 2024

based on #330

  • modifies LLM config values llm_api and model
    • llm_api now is a dropdown with optional manual input. Options: OpenRouter, OpenAi, KoboldCpp, Textgenwebui.
    • model now comes with an extra button Update list that updates the list of available models with the ones requested from OpenRouter or Open AI
  • added function to determine available models to openai_client.py
  • cleaned up settings_ui_constructor.py
  • moved automatic_greeting from LLM to Other category

@art-from-the-machine
As I don't have access to OpenAI you would need to double check if the code to retrieve the list from OpenRouter works the same for OpenAI. Requesting the models should be the same, as is the name/id of them. I suspect the information about context and pricing could be located somewhere else in the result object or maybe even missing entirely.

Leidtier and others added 15 commits July 24, 2024 20:12
- Added a button *Default* to each config value in the UI that resets it to the default value
- Added `{player_description}`, `{player_equipment}`, `{equipment}` and `{weather}` to Skyrim default prompts
- moved prompt config values into their own category to unclutter LLM category
- Selection config values can now be set to also allow free text input
- Default values of String config values are now stripped of whitespaces at the beginning and end of each line
- fixed merge bug that left `Character.equipment` property without the `@property` tag
- modifies LLM config values `llm_api` and `model`
 - `llm_api` now is dropdown with optional manual input. Options: OpenRouter, OpenAi, KoboldCpp, Textgenwebui.
 - `model` now comes with an extra button *Update list* that updates the list of available models with the ones requested from OpenRouter or Open AI
- added function to determine available models to `openai_client.py`
- cleaned up `settings_ui_constructor.py`
- moved `automatic_greeting` from *LLM* to *Other* category
@art-from-the-machine art-from-the-machine merged commit abb2989 into art-from-the-machine:main Aug 7, 2024
@Leidtier Leidtier deleted the Select-llm-model-from-list branch August 9, 2024 10:43
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.

2 participants