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

Configurable OpenAI Endpoints and Models #7

Open
Josh-XT opened this issue Mar 15, 2024 · 4 comments · May be fixed by #8
Open

Configurable OpenAI Endpoints and Models #7

Josh-XT opened this issue Mar 15, 2024 · 4 comments · May be fixed by #8

Comments

@Josh-XT
Copy link

Josh-XT commented Mar 15, 2024

Hello! I'm excited to help but Kotlin is unfortunately not my jam. In the little time I've spent in the code base so far, I have found that the changes that I'm requesting would be in BaseActivity.kt and ChatGptFragment.kt

I would like to suggest configurable OpenAI endpoints. Basically anywhere in the project that you see https://api.openai.com/v1 should be a configurable URL that can be changed in the settings along with the OpenAI API key in the settings (which also doesn't exist currently.) There are many pass-thru OpenAI style endpoint systems that don't specifically use OpenAI or their models, but use their exact JSON inputs and outputs.

With this, the use of text-davinci-003 and completions should also be changed. The model will need to be able to be defined in the advanced settings as well. OpenAI is considering completions legacy use now, I would recommend switching to their chat completions style endpoints. which is what most people use and would support better models on the monocle than text-davinci-003, such as gpt-3.5-turbo and gpt-4, the models included in ChatGPT unlike text-davinci-003.

Making these changes should greatly improve the application making it usable again.

@josuah
Copy link
Member

josuah commented Mar 16, 2024

Cross-linking with this issue on the iOS repo:
brilliantlabsAR/noa-for-ios#87

@Josh-XT
Copy link
Author

Josh-XT commented Mar 16, 2024

I'm making progress in this direction on my fork. I'm happy to contribute to the project with a pull request once I confirm the functionality works.

https://github.com/Josh-XT/noa-for-android

image

@Josh-XT
Copy link
Author

Josh-XT commented Mar 17, 2024

Seems like I got it sorted and added some other features as bonus while I was in there trying to get these things together. I opened pull request #8 to implement these features.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants