mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-14 15:52:11 +02:00
feat: pluggable image-to-text service with OpenAI vision backend (#1038)
Adds a full-stack image description service: schema, base class,
OpenAI backend, gateway dispatch, client APIs (sync/async REST +
websocket), tg-describe-image CLI, IAM capability, and specs.
Closes #879
This commit is contained in:
parent
9136526863
commit
40f01c123b
42 changed files with 1845 additions and 14 deletions
|
|
@ -588,6 +588,13 @@ class TestDispatcherManager:
|
|||
with pytest.raises(RuntimeError, match="This kind not supported by flow"):
|
||||
await manager.invoke_flow_service("data", "responder", "default", "test_flow", "agent")
|
||||
|
||||
def test_request_response_dispatchers_include_image_to_text(self):
|
||||
"""image-to-text must be registered as a request/response service"""
|
||||
from trustgraph.gateway.dispatch.manager import request_response_dispatchers
|
||||
from trustgraph.gateway.dispatch.image_to_text import ImageToTextRequestor
|
||||
|
||||
assert request_response_dispatchers["image-to-text"] is ImageToTextRequestor
|
||||
|
||||
@pytest.mark.asyncio
|
||||
async def test_invoke_flow_service_invalid_kind(self):
|
||||
"""Test invoke_flow_service with invalid kind"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue