Skip to content

Commit

Permalink
feat: Use gpt-4-turbo model as default. Upgrade Python llama-index …
Browse files Browse the repository at this point in the history
…to 0.10.28
  • Loading branch information
marcusschiesser committed Apr 10, 2024
1 parent a0dec80 commit 1c3d0b1
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Optionally generate a frontend if you've selected the Python or Express back-end

## Customizing the AI models

The app will default to OpenAI's `gpt-4-vision-preview` LLM and `text-embedding-3-large` embedding model.
The app will default to OpenAI's `gpt-4-turbo` LLM and `text-embedding-3-large` embedding model.

If you want to use different OpenAI models, add the `--ask-models` CLI parameter.

Expand Down
2 changes: 1 addition & 1 deletion questions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ const defaults: QuestionArgs = {
openAiKey: "",
llamaCloudKey: "",
useLlamaParse: false,
model: "gpt-4-vision-preview",
model: "gpt-4-turbo",
embeddingModel: "text-embedding-3-large",
communityProjectConfig: undefined,
llamapack: "",
Expand Down
6 changes: 3 additions & 3 deletions templates/types/streaming/fastapi/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ python = "^3.11,<3.12"
fastapi = "^0.109.1"
uvicorn = { extras = ["standard"], version = "^0.23.2" }
python-dotenv = "^1.0.0"
llama-index = "0.10.15"
llama-index-core = "0.10.15"
llama-index-agent-openai = "0.1.5"
llama-index = "0.10.28"
llama-index-core = "0.10.28"
llama-index-agent-openai = "0.2.2"

[build-system]
requires = ["poetry-core"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export default function ChatSection() {
handleSubmit={handleSubmit}
handleInputChange={handleInputChange}
isLoading={isLoading}
multiModal={process.env.NEXT_PUBLIC_MODEL === "gpt-4-vision-preview"}
multiModal={process.env.NEXT_PUBLIC_MODEL === "gpt-4-turbo"}
/>
</div>
);
Expand Down

0 comments on commit 1c3d0b1

Please sign in to comment.