Skip to content

Implement and OpenAI API provider#96

Open
brknkfr wants to merge 1 commit intomicr0-dev:mainfrom
brknkfr:openai_provider
Open

Implement and OpenAI API provider#96
brknkfr wants to merge 1 commit intomicr0-dev:mainfrom
brknkfr:openai_provider

Conversation

@brknkfr
Copy link

@brknkfr brknkfr commented Mar 16, 2026

This pull requests implements an OpenAI provider for image recognition. Video is not yet implemented. It allows you to define your custom OpenAI API endpoint and your own model.

I just know other programming languages, but I don't know Go, but I absolutely wanted an OpenAI compatible provider for Altbot, so I sat down and created this PR. I didn't test it with the official OpenAI endpoint, but with our local LocalAI installation this works marvellously.

And probably this PR would be better off by using the go library provided by OpenAI themselves (https://github.com/openai/openai-go), but it was too big for me for a quick implementation.

Please be nice in your reviews, I really don't know how to correctly program in Go.

@brknkfr brknkfr changed the title Implement and OpenAI provider Implement and OpenAI API provider Mar 16, 2026
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.

1 participant