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

OpenAI path #26

Closed
toropanov opened this issue Mar 22, 2024 · 3 comments
Closed

OpenAI path #26

toropanov opened this issue Mar 22, 2024 · 3 comments

Comments

@toropanov
Copy link

toropanov commented Mar 22, 2024

Feature request

I appreciate the effort of extending the aicommit base repository. However, I do have a question.

If I need to not only replace the base URL, but also change the path as well. Like for example - https://hello.com/cats/v1/conversation.. Would it work if I would change OPENAI_URL to hello.com/cats/ ?

I hope I made myself clear.

Why?

Nothing here

Alternatives

Additional context

No response

@tak-bro
Copy link
Owner

tak-bro commented Mar 23, 2024

@toropanov Thank you for your interest. I update OPENAI config and add OPENAI_PATH option. The fix will be available starting from version v1.7.5.
You can set OPENAI_URL, OPENAI_PATH as below.

aicommit2 config set OPENAI_URL="https://hello.com"
aicommit2 config set OPENAI_PATH="/cats/v1/conversation"

It will request to https://hello.com/cats/v1/conversation

@tak-bro tak-bro closed this as completed Mar 25, 2024
@Dakai
Copy link

Dakai commented Aug 16, 2024

@toropanov Thank you for your interest. I update OPENAI config and add OPENAI_PATH option. The fix will be available starting from version v1.7.5. You can set OPENAI_URL, OPENAI_PATH as below.

aicommit2 config set OPENAI_URL="https://hello.com"
aicommit2 config set OPENAI_PATH="/cats/v1/conversation"

It will request to https://hello.com/cats/v1/conversation

I tried the commands above but received error message, and I think by the current version 2.0.3, the correct commands are:

aicommit2 config set OPENAI.url="url"
aicommit2 config set OPENAI.path="path"

@tak-bro
Copy link
Owner

tak-bro commented Aug 17, 2024

@Dakai That's right. Starting with version 2.0.0, the command has changed because it supports individual options for each model.
Thank you for sharing!

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

No branches or pull requests

3 participants