Aspose.Words 25.9 AI fails with custom OpenAIModel on .NET 8

Hello Aspose Support Team,

We are a reseller, reporting an issue from our customer.

Environment:
Product: Aspose.Words for .NET v25.9
Runtime: .NET 8

Scenario:
Using Aspose.Words AI features
Custom AI model inherited from Aspose.Words.AI.OpenAiModel
Backend AI providers: Zhipu AI (智谱) and Kimi
Model URL is configured to the corresponding API endpoint

Issue:
Calls to AiModel.Translate(…) or AiModel.Summarize(…) fail
Exception is thrown inside Aspose.Words.dll (e.g. NullReferenceException)
The same logic works when using official OpenAI services, but fails with Zhipu/Kimi

The relevant information has been uploaded as an attachment.

Best regards,

@wangwang1

  • Are the Zhipu AI and Kimi API endpoints fully compatible with the OpenAI API schema (e.g. same request/response structure, field names, authentication method)?
  • Can you confirm if the custom OpenAiModel implementation correctly sets all required properties (e.g. BaseUrl, ApiKey, ModelName) for Zhipu and Kimi?
  • Does the exception occur during HTTP request execution or during response deserialization in Aspose.Words?
  • Have you validated that the API keys and endpoints for Zhipu/Kimi work outside Aspose.Words (e.g. via curl or Postman)?
  • Is the NullReferenceException thrown before or after the HTTP call is made to the custom endpoint?
  • Can you share the stack trace of the exception (without sensitive data)?

The file is quite large, so we have uploaded it to Google Drive.
Please download it via the link below:
https://drive.google.com/file/d/1nKjH7CpM-c7bN8XoorT7dpGsDmvQ4BL6/view?usp=sharing

@wangwang1 Does Zhipu AI (智谱) and Kimi are subset of OpenAI model? Currently Aspose.Words can work only with OpenAI , Google an Anthropic AI models.