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

feat: add azureopenai backend #62

Merged
merged 2 commits into from
May 6, 2023

Conversation

arbreezy
Copy link
Member

@arbreezy arbreezy commented May 5, 2023

Closes #

📑 Description

Adding azureopenai backend and introduce kubebuilder markers to assign default values for model=gpt-3.5-turbo and backend=openai
I've also added an evaluation on the backend accepted names to help users define their desired backend name

✅ Checks

  • My pull request adheres to the code style of this project
  • My code requires changes to the documentation
  • I have updated the documentation as required
  • All the tests have passed

ℹ Additional Information

There is a reconcile error if a user tries to specify engine without having azureopenai as their backend.
example:

2023-05-05T20:29:08+03:00	ERROR	Reconciler error	{"controller": "k8sgpt", "controllerGroup": "core.k8sgpt.ai", "controllerKind": "K8sGPT", "K8sGPT": {"name":"k8sgpt-sample","namespace":"kube-system"}, "namespace": "kube-system", "name": "k8sgpt-sample", "reconcileID": "5a08a085-610b-44f6-ada8-19f052aad6b3", "error": "Engine is supported only by azureopenai provider."}

Signed-off-by: Aris Boutselis <arisboutselis08@gmail.com>
@arbreezy arbreezy requested review from a team as code owners May 5, 2023 17:40
Signed-off-by: Aris Boutselis <arisboutselis08@gmail.com>
@AlexsJones AlexsJones merged commit d51cc3e into k8sgpt-ai:main May 6, 2023
@arbreezy arbreezy deleted the feat/add-azure-backend branch May 6, 2023 18:50
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