Add option to specify Client Name in Cohere API Client.
What
Cohere's TS API client allows to specify a client name.
It would be useful to have the ability to specify a client name by a config or env variable (ie COHERE_CLIENT_NAME) when the client is initialized.
sounds good! care to open a PR for this?
I was talking to @alexrs-cohere on slack about this 😄
I think the best way would be to add a clientName in our schema definition: https://github.com/huggingface/chat-ui/blob/6de97af071c69aa16e8f893adebb46f86bdeeaff/src/lib/server/endpoints/cohere/endpointCohere.ts#L11-L18 so it can be added in the MODELS env var directly
Let me know if you feel like you want to tackle it @alexrs-cohere otherwise I can do it with a quick PR
@nsarrazin Go ahead! My TS skills are not great so probably more efficient if you submit a quick PR than reviewing my code for this 😅
Another approach can be to add a new field in the endpoints object in MODELS such as:
[
{
...
"endpoints": [{
"type": "cohere",
"client_name": "abcdef",
...
}]
}
]
if this can be useful for other clients.
Closing since this is now fixed