Add self-hosted models support for v2/agents
Problem to solve
v1/agents
support self-hosted models using the params model_endpoint
and model_api_key
, which are not supported on v2/agents
Parameters are fetched here: https://gitlab.com/gitlab-org/modelops/applied-ml/code-suggestions/ai-assist/blob/main/ai_gateway/api/v1/chat/typing.py#L49