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

add support for Azure OpenAI API - continue MR 167 #324

Merged
merged 17 commits into from
May 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
6519441
✨ feat(api.ts): add support for Azure OpenAI API
takuya-o May 6, 2023
539dc7d
🐛 fix(AzureOpenAI.ts): fix import path for AxiosRequestConfig to avoi…
takuya-o May 7, 2023
a78d61d
🔧 fix(AzureOpenAI.ts): import RequiredError to fix error handling and…
takuya-o May 7, 2023
7613473
🔇 chore(AzureOpenAI.ts): remove console.log statement and translate J…
takuya-o May 7, 2023
3b8e436
🔥 refactoring(api.ts, AzureOpenAI.ts): Leverage openai npm package
takuya-o May 9, 2023
260bac7
Merge remote-tracking branch 'fork/master' into support-azure-openai
ByJacob Apr 19, 2024
80eb217
✨ (README.md): update opencommit command to set OCO_AI_PROVIDER inste…
ByJacob Apr 19, 2024
62fe5ef
✨ (package.json): add @azure/openai dependency to support integration…
ByJacob Apr 19, 2024
d063178
📝 (prompts.ts): remove unnecessary information about crafting a conci…
ByJacob Apr 19, 2024
ec307d5
3.0.14 (#333)
di-sukharev May 5, 2024
9cf2db8
3.0.15
di-sukharev May 5, 2024
cb7f5dd
build
di-sukharev May 5, 2024
d076776
Merge remote-tracking branch 'fork/master' into support-azure-openai
ByJacob May 6, 2024
afe7108
Merge remote-tracking branch 'fork/dev' into support-azure-openai
ByJacob May 6, 2024
617a195
🐛 (prepare-commit-msg-hook.ts): improve error message to cover missin…
ByJacob May 6, 2024
d7afb19
🐛 (azure.ts): fix check for OCO_AI_PROVIDER to properly assign provid…
ByJacob May 7, 2024
de85dc2
Merge remote-tracking branch 'fork/dev' into support-azure-openai
ByJacob May 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,20 @@ oco config set OCO_MODEL=gpt-4-0125-preview

Make sure that you spell it `gpt-4` (lowercase) and that you have API access to the 4th model. Even if you have ChatGPT+, that doesn't necessarily mean that you have API access to GPT-4.

### Switch to Azure OpenAI

By default OpenCommit uses [OpenAI](https://openai.com).

You could switch to [Azure OpenAI Service](https://learn.microsoft.com/azure/cognitive-services/openai/)🚀

```sh
opencommit config set OCO_AI_PROVIDER=azure
```

Of course need to set 'OPENAI_API_KEY'. And also need to set the
'OPENAI_BASE_PATH' for the endpoint and set the deployment name to
'model'.

### Locale configuration

To globally specify the language used to generate commit messages:
Expand Down
Loading
Loading