Skip to content

Conversation

@SunburstEnzo
Copy link
Contributor

What

DemoApp Project
• Adds support for listing all available Models (but not yet specific Model requests; TBD placeholder view for now) [id's only, so could be a String array instead, but I expect to add ownership, etc, to the cell in the form of an icon maybe]
• Added a "Misc" tab so other trivial examples can go there as well
• Added a MiscStore object which mimics ChatStore – I don't have a ton of SwiftUI experience so this may not be needed; may be other ways to get the API token for this use case
• Some formatting consistency improvements in DemoApp

OpenAI Project
ModelResult conforms to Identifiable so it can be used in SwiftUI List (this may not be the best place for it)

Simulator Screenshot - iPhone 14 Pro - 2023-04-22 at 21 53 35 2
Simulator Screenshot - iPhone 14 Pro - 2023-04-22 at 21 53 40 2

Why

Should help with choosing a model for chat which already has an example

Affected Areas

Enhancement only

Improvements

Model being an enum with a "localized title" computed property could make it look more presentable in the list – unsupported models could be done like .other("gpt-99") without a formatted title

@Krivoblotsky Krivoblotsky self-requested a review April 24, 2023 10:02
@Krivoblotsky Krivoblotsky merged commit f0e1709 into MacPaw:main Apr 24, 2023
@SunburstEnzo SunburstEnzo deleted the demoapp-listmodels branch April 24, 2023 12:25
wangqi pushed a commit to wangqi/OpenAI that referenced this pull request Feb 18, 2025
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.

3 participants