Support OpenAI gpt-4o and gpt-4o-mini for img2text (#4300)
Browse files### What problem does this PR solve?
OpenAI has deprecated the gpt-4-vision-preview model. This PR adds
support for the newer gpt-4o and gpt-4o-mini models in the img2text
feature.

This PR add addtional 4o/4o-mini entry for img2text besides original
ones. Utilized [alias](https://platform.openai.com/docs/models#gpt-4o)
model names (e.g., gpt-4o-2024-08-06) because the database schema uses
the model name as the primary key.
- [x] Other (please describe): model update
- conf/llm_factories.json +8 -2
conf/llm_factories.json
CHANGED
@@ -73,9 +73,15 @@
|
|
73 |
"model_type": "chat"
|
74 |
},
|
75 |
{
|
76 |
-
"llm_name": "gpt-
|
77 |
"tags": "LLM,CHAT,IMAGE2TEXT",
|
78 |
-
"max_tokens":
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
"model_type": "image2text"
|
80 |
},
|
81 |
{
|
|
|
73 |
"model_type": "chat"
|
74 |
},
|
75 |
{
|
76 |
+
"llm_name": "gpt-4o-2024-08-06",
|
77 |
"tags": "LLM,CHAT,IMAGE2TEXT",
|
78 |
+
"max_tokens": 128000,
|
79 |
+
"model_type": "image2text"
|
80 |
+
},
|
81 |
+
{
|
82 |
+
"llm_name": "gpt-4o-mini-2024-07-18",
|
83 |
+
"tags": "LLM,CHAT,IMAGE2TEXT",
|
84 |
+
"max_tokens": 128000,
|
85 |
"model_type": "image2text"
|
86 |
},
|
87 |
{
|