mistralai / client-python

Python client library for Mistral AI platform
Apache License 2.0
478 stars 103 forks source link

pydantic_core._pydantic_core.ValidationError: 14 validation errors for ModelList #83

Closed pseudotensor closed 7 months ago

pseudotensor commented 7 months ago

Just started hitting this hour ago or so. Model info from mistralai endpoint is bad.

from mistralai.client import MistralClient
api_key = '<fill me>'
client = MistralClient(api_key=api_key)
client.list_models()

leads to:

pydantic_core._pydantic_core.ValidationError: 14 validation errors for ModelList
data.0.permission.0.created
  Field required [type=missing, input_value={'id': 'modelperm-6b41fff...se, 'organization': '*'}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.6/v/missing
data.1.permission.0.created
  Field required [type=missing, input_value={'id': 'modelperm-eae7f7f...se, 'organization': '*'}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.6/v/missing
data.2.permission.0.created
  Field required [type=missing, input_value={'id': 'modelperm-0e1104a...se, 'organization': '*'}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.6/v/missing
data.3.permission.0.created
  Field required [type=missing, input_value={'id': 'modelperm-d552e7f...se, 'organization': '*'}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.6/v/missing
data.4.permission.0.created
  Field required [type=missing, input_value={'id': 'modelperm-42276f7...se, 'organization': '*'}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.6/v/missing
data.5.permission.0.created
  Field required [type=missing, input_value={'id': 'modelperm-28d07b4...se, 'organization': '*'}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.6/v/missing
data.6.permission.0.created
  Field required [type=missing, input_value={'id': 'modelperm-7614eb5...se, 'organization': '*'}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.6/v/missing
data.7.permission.0.created
  Field required [type=missing, input_value={'id': 'modelperm-d5fa9c0...se, 'organization': '*'}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.6/v/missing
data.8.permission.0.created
  Field required [type=missing, input_value={'id': 'modelperm-57a725b...se, 'organization': '*'}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.6/v/missing
data.9.permission.0.created
  Field required [type=missing, input_value={'id': 'modelperm-810fd89...se, 'organization': '*'}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.6/v/missing
data.10.permission.0.created
  Field required [type=missing, input_value={'id': 'modelperm-8511c22...se, 'organization': '*'}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.6/v/missing
data.11.permission.0.created
  Field required [type=missing, input_value={'id': 'modelperm-815c8d0...se, 'organization': '*'}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.6/v/missing
data.12.permission.0.created
  Field required [type=missing, input_value={'id': 'modelperm-601adc1...se, 'organization': '*'}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.6/v/missing
data.13.permission.0.created
  Field required [type=missing, input_value={'id': 'modelperm-b880eb7...se, 'organization': '*'}, input_type=dict]
    For further information visit https://errors.pydantic.dev/2.6/v/missing
lerela commented 7 months ago

API was fixed, sorry about that.