You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-7
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ exif-ai -i example.jpeg -a ollama
33
33
34
34
Required options:
35
35
36
-
-`-a, --api-provider <value>`: Name of the AI provider to use (`ollama` for Ollama, `zhipu` for ZhipuAI, `google` for Google Gemini, `coze_bot` for Coze Bot).
36
+
-`-a, --api-provider <value>`: Name of the AI provider to use (`ollama` for Ollama, `zhipu` for ZhipuAI, `google` for Google Gemini, `coze_bot` for Coze Bot, `openai` for OpenAI).
37
37
38
38
Optional options:
39
39
@@ -133,21 +133,36 @@ Please ensure that you securely manage your API keys. Do not expose them in publ
133
133
134
134
## API Providers
135
135
136
-
Exif AI relies on API providers to generate image descriptions and tags. Currently, we support four providers: ZhipuAI, Ollama, Google Gemini and Coze.
136
+
Exif AI is designed to leverage various API providers for generating image descriptions and tags. We currently support five prominent providers, each offering unique capabilities and integration options. Below is a summary of the supported providers, including details on their requirements and features.
137
137
138
138
### Supported Providers
139
139
140
-
- ZhipuAI: A leading AI service provider. Requires an API key.
141
-
- Ollama: A local AI service that runs on your machine, eliminating the need for an API key.
142
-
- Google Gemini: A powerful AI service provided by Google.
143
-
- Coze: Coze is a next-generation AI application and chatbot developing platform for everyone.
140
+
- ZhipuAI: A cutting-edge AI service provider known for its advanced algorithms. Access to this service requires an API key.
141
+
- Ollama: An innovative local AI service that operates directly on your machine. This option does not require an API key, offering a seamless and private experience.
142
+
- Google Gemini: A robust AI service powered by Google, renowned for its high-quality image processing capabilities.
143
+
- Coze: Coze is a state-of-the-art AI platform designed for everyone, enabling the development of next-generation applications and chatbots.
144
+
- OpenAI: A preeminent AI service provider, recognized for its wide range of AI-powered tools and applications. Like ZhipuAI, it requires an API key for access.
144
145
145
146
### Custom Providers
146
147
147
-
You can also develop your own custom provider by implementing the provider interface. This allows you to integrate with other AI services or customize the description generation process.
148
+
For users seeking to extend the functionality of Exif AI or integrate with additional AI services, we offer the flexibility to develop custom providers. By implementing the provider interface, you can create a custom provider to integrate with other AI services or tailor the image description generation process to your specific needs.
148
149
149
150
## Configuration
150
151
152
+
### OpenAI
153
+
154
+
To use [OpenAI](https://openai.com/), you need to set the API key. You can do this by setting an environment variable:
155
+
156
+
```bash
157
+
export OPENAI_API_KEY=your_openai_api_key
158
+
```
159
+
160
+
If you wish to use a custom API service provider that is compatible with the OpenAI API, you can set the `OPEN_API_BASEURL` environment variable to point to the desired endpoint.
0 commit comments