File size: 491 Bytes
df3937f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import asyncio
from agentscope.credential._openai_compat import NvidiaNimCredential
from agentscope.credential import CredentialFactory
import logging

logging.basicConfig(level=logging.WARNING)

async def test():
    cls = CredentialFactory.get_credential_class("nvidia_nim_credential")
    print("credential class:", cls)
    model_cls = cls.get_chat_model_class()
    print("model class:", model_cls)
    models = model_cls.list_models()
    print("models:", models)

asyncio.run(test())