mirror of
https://github.com/zylon-ai/private-gpt.git
synced 2025-12-22 07:40:12 +01:00
Allow setting OpenAI model in settings (#1386)
feat(settings): Allow setting openai model to be used. Default to GPT 3.5
This commit is contained in:
parent
a3ed14c58f
commit
a072a40a7c
4 changed files with 11 additions and 2 deletions
|
|
@ -145,6 +145,10 @@ class SagemakerSettings(BaseModel):
|
|||
|
||||
class OpenAISettings(BaseModel):
|
||||
api_key: str
|
||||
model: str = Field(
|
||||
"gpt-3.5-turbo",
|
||||
description=("OpenAI Model to use. Example: 'gpt-4'."),
|
||||
)
|
||||
|
||||
|
||||
class UISettings(BaseModel):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue