Skip to content

Commit

Permalink
Update to use gpt-4o-mini
Browse files Browse the repository at this point in the history
  • Loading branch information
daohoangson committed Jul 19, 2024
1 parent a32b427 commit 0f09bf3
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 136 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@

## Usage

| Chat with `gpt-4o` | Analyze image | Generate with `dall-e-3` |
| Chat with `gpt-4o-mini` | Analyze image | Generate with `dall-e-3` |
| --------------------------------- | --------------------------------------------------- | ------------------------------------------------------------------------- |
| ![Chat](screenshots/001_chat.jpg) | ![Analyze image](screenshots/002_analyze_image.jpg) | ![Analyze then generate image](screenshots/003_analyze_then_generate.jpg) |

## Roadmap

- [x] Integrate with [Assistants API](https://platform.openai.com/docs/assistants/overview)
- [x] Use [GPT-4o](https://platform.openai.com/docs/models/gpt-4o) for conversation
- [x] Use [GPT-4o mini](https://platform.openai.com/docs/models/gpt-4o-mini) for conversation
- [x] Use [DALL-E 3](https://platform.openai.com/docs/models/dall-e) for image generation
- [x] Use [whisper-1](https://platform.openai.com/docs/models/whisper) for speech to text transcription
- [x] Use [tts-1](https://platform.openai.com/docs/models/tts) for text to speech synthesis
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
"@aws-sdk/lib-dynamodb": "^3.449.0",
"aws-xray-sdk": "^3.5.3",
"marked": "^10.0.0",
"openai": "^4.46.1",
"openai": "^4.52.7",
"openapi3-ts": "^4.1.2",
"sanitize-html": "^2.11.0",
"serialize-error": "^11.0.3",
"telegraf": "^4.15.0",
"zod": "^3.22.4"
}
}
}
2 changes: 1 addition & 1 deletion packages/openai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
},
"dependencies": {
"@anatine/zod-openapi": "^2.2.1",
"openai": "^4.46.1",
"openai": "^4.52.7",
"serialize-error": "^11.0.3",
"zod": "^3.22.4"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/openai/src/internal/assistant_message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ You can only reply to text or photo messages.`;
return threads.runs.stream(threadId, {
assistant_id: assistantId,
instructions,
model: "gpt-4o",
model: "gpt-4o-mini",
tools: [
{ type: "code_interpreter" },
{ type: "file_search" },
Expand Down
157 changes: 27 additions & 130 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0f09bf3

Please sign in to comment.