Я застрял при импорте языковой модели openhermes 2.5, выдает ошибку неправильного запроса 400.Python

Программы на Python
Гость
Я застрял при импорте языковой модели openhermes 2.5, выдает ошибку неправильного запроса 400.

Сообщение Гость »


Here is my code for chat completion.

response = client.chat.completions.create( model="models/openhermes-2.5-mistral-7b", messages=[ {"role": "system", "content": "You are a helpful Data Science & AI Blogger. your response should be short"}, {"role": "user", "content": "Help me to write an article on Data Science & AI"} ] ) Here is the error:
BadRequestError: Error code: 400 - {'error': {'message': 'invalid model ID', 'type':'invalid_request_error','param': None, 'code': None}}
  • I have already installed openai library, imported api key and base url,
  • I am expecting to run this model in order to proceed my learning.


Источник: https://stackoverflow.com/questions/780 ... equest-err

Вернуться в «Python»