Branch: refs/heads/main
Home: https://github.com/xwiki-contrib/ai-llm
Commit: 7b9c03814b5a63b7117ca05777b38752c8a1e5e4
https://github.com/xwiki-contrib/ai-llm/commit/7b9c03814b5a63b7117ca05777b3…
Author: Michael Hamann <michael.hamann(a)xwiki.com>
Date: 2024-07-12 (Fri, 12 Jul 2024)
Changed paths:
M application-ai-llm-models/application-ai-llm-models-api/src/main/java/org/xwiki/contrib/llm/internal/OpenAIChatModel.java
M application-ai-llm-models/application-ai-llm-models-api/src/main/java/org/xwiki/contrib/llm/openai/ChatMessage.java
Log Message:
-----------
LLMAI-100: Errors with some providers that don't ignore extra parameters
* Send stream_options only to OpenAI.
* Don't include the memory in the JSON output when it is null.
Commit: b9aa2bb1d2e024a2b88874eb2fe36d1a3c52f8fe
https://github.com/xwiki-contrib/ai-llm/commit/b9aa2bb1d2e024a2b88874eb2fe3…
Author: Michael Hamann <michael.hamann(a)xwiki.com>
Date: 2024-07-12 (Fri, 12 Jul 2024)
Changed paths:
M application-ai-llm-chat/application-ai-llm-chat-webjar/webjar/aillm.js
M application-ai-llm-chat/application-ai-llm-chat-webjar/webjar/chatWidget.js
M application-ai-llm-index/application-ai-llm-index-api/src/main/java/org/xwiki/contrib/llm/SolrConnector.java
M application-ai-llm-index/application-ai-llm-index-api/src/main/java/org/xwiki/contrib/llm/internal/RAGChatRequestFilter.java
M application-ai-llm-models/application-ai-llm-models-api/src/main/java/org/xwiki/contrib/llm/AbstractChatRequestFilter.java
M application-ai-llm-models/application-ai-llm-models-api/src/main/java/org/xwiki/contrib/llm/ChatModel.java
M application-ai-llm-models/application-ai-llm-models-api/src/main/java/org/xwiki/contrib/llm/ChatRequestFilter.java
M application-ai-llm-models/application-ai-llm-models-api/src/main/java/org/xwiki/contrib/llm/RequestError.java
M application-ai-llm-models/application-ai-llm-models-api/src/main/java/org/xwiki/contrib/llm/internal/FilteringOpenAIChatModel.java
M application-ai-llm-models/application-ai-llm-models-api/src/main/java/org/xwiki/contrib/llm/internal/OpenAIChatModel.java
M application-ai-llm-models/application-ai-llm-models-api/src/main/java/org/xwiki/contrib/llm/internal/OpenAIGPTAPIServer.java
M application-ai-llm-models/application-ai-llm-models-api/src/main/java/org/xwiki/contrib/llm/internal/rest/DefaultChatCompletionsResource.java
M application-ai-llm-models/application-ai-llm-models-ui/src/main/resources/AI/Code/Javascript.xml
Log Message:
-----------
LLMAI-101: Improve error handling in chat completion requests
* Let RequestError inherit from IOException to make it easier to throw in different scenarios.
* Convert RequestError to an OpenAIError object and return that as JSON.
* Log the raw response when an error occurs.
* Display error messages in both chat UIs.
* Add the [DONE] marker to the end of the stream to fix error handling in the chat UI.
* Properly handle [DONE] markers in the standalone chat API.
* Better error log when embedding fails as part of the context search.
Compare: https://github.com/xwiki-contrib/ai-llm/compare/346864ab1350...b9aa2bb1d2e0
To unsubscribe from these emails, change your notification settings at https://github.com/xwiki-contrib/ai-llm/settings/notifications