Switch to gpt-4o-mini by default (#233)

* Switch to gpt-4o-mini by default

* Add option and make gpt-4o-mini default in frontend

* Run llama index notebook without extra arguments in poetry install

* Install extras for llama_index_notebook run
This commit is contained in:
0xideas 2024-11-18 17:38:54 +01:00 committed by GitHub
parent ced5385186
commit 34e140a41d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 7 additions and 4 deletions

View file

@ -46,7 +46,7 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
poetry install --no-interaction --all-extras --no-root poetry install --no-interaction --all-extras
poetry add jupyter --no-interaction poetry add jupyter --no-interaction
- name: Execute Jupyter Notebook - name: Execute Jupyter Notebook

View file

@ -30,8 +30,8 @@ const defaultProvider = {
}; };
const defaultModel = { const defaultModel = {
label: 'gpt-4o', label: 'gpt-4o-mini',
value: 'gpt-4o', value: 'gpt-4o-mini',
}; };
export default function Settings({ onDone = () => {}, submitButtonText = 'Save' }) { export default function Settings({ onDone = () => {}, submitButtonText = 'Save' }) {

View file

@ -4,7 +4,7 @@ from pydantic_settings import BaseSettings, SettingsConfigDict
class LLMConfig(BaseSettings): class LLMConfig(BaseSettings):
llm_provider: str = "openai" llm_provider: str = "openai"
llm_model: str = "gpt-4o" llm_model: str = "gpt-4o-mini"
llm_endpoint: str = "" llm_endpoint: str = ""
llm_api_key: Optional[str] = None llm_api_key: Optional[str] = None
llm_temperature: float = 0.0 llm_temperature: float = 0.0

View file

@ -73,6 +73,9 @@ def get_settings() -> SettingsDict:
"providers": llm_providers, "providers": llm_providers,
"models": { "models": {
"openai": [{ "openai": [{
"value": "gpt-4o-mini",
"label": "gpt-4o-mini",
}, {
"value": "gpt-4o", "value": "gpt-4o",
"label": "gpt-4o", "label": "gpt-4o",
}, { }, {