Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify OpenAI.performRequest #135

Merged
merged 10 commits into from
Feb 2, 2024
Merged

Simplify OpenAI.performRequest #135

merged 10 commits into from
Feb 2, 2024

Conversation

rchatham
Copy link
Contributor

@rchatham rchatham commented Dec 7, 2023

What

Increases the readability of performRequest, performSpeechRequest, and processJSON.

Why

Readability and simplicity.

Affected Areas

OpenAI.swift

@rchatham rchatham changed the title Simplify Simplify OpenAI.performRequest Dec 7, 2023
Copy link
Contributor

@ingvarus-bc ingvarus-bc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, @rchatham!
Thanks for your Pull Request and interest in the project!
I love the approach and how much simpler it became 🔥
Made just a couple comments to fix minor errors in the code, as they just wouldn't let it build and they're basically a compiler errors.

Sources/OpenAI/Private/StreamingSession.swift Outdated Show resolved Hide resolved
Sources/OpenAI/Private/StreamingSession.swift Outdated Show resolved Hide resolved
Copy link

sonarcloud bot commented Dec 27, 2023

Quality Gate Passed Quality Gate passed

Kudos, no new issues were introduced!

0 New issues
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@rchatham
Copy link
Contributor Author

@ingvarus-bc I updated this PR some time ago, what do you think about merging?

@ingvarus-bc ingvarus-bc merged commit e469133 into MacPaw:main Feb 2, 2024
1 check passed
@ingvarus-bc
Copy link
Contributor

Thanks for your contribution, @rchatham!

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.

None yet

2 participants