Branch: refs/heads/waise
Home:
https://github.com/xwiki-contrib/application-ai-llm
Commit: a0dc756b065bfed25e291738d44574935c5aba2a
https://github.com/xwiki-contrib/application-ai-llm/commit/a0dc756b065bfed2…
Author: Michael Hamann <michael.hamann(a)xwiki.com>
Date: 2024-01-23 (Tue, 23 Jan 2024)
Changed paths:
M
application-ai-llm-models/application-ai-llm-models-api/src/main/java/org/xwiki/contrib/llm/EmbeddingModelDescriptor.java
M
application-ai-llm-models/application-ai-llm-models-api/src/main/java/org/xwiki/contrib/llm/internal/DefaultEmbeddingModelManager.java
Log Message:
-----------
LLMAI-38: Support for embedding models
* Rename `displayName` to `name` in EmbeddingModelDescriptor to align with what OpenRouter
has in its models API.
Commit: b5369cac3847a984f05c46cc79e1ddd3f659ac0a
https://github.com/xwiki-contrib/application-ai-llm/commit/b5369cac3847a984…
Author: Michael Hamann <michael.hamann(a)xwiki.com>
Date: 2024-01-23 (Tue, 23 Jan 2024)
Changed paths:
M
application-ai-llm-models/application-ai-llm-models-api/src/main/java/org/xwiki/contrib/llm/ChatModel.java
A
application-ai-llm-models/application-ai-llm-models-api/src/main/java/org/xwiki/contrib/llm/ChatModelDescriptor.java
M
application-ai-llm-models/application-ai-llm-models-api/src/main/java/org/xwiki/contrib/llm/ChatModelManager.java
M
application-ai-llm-models/application-ai-llm-models-api/src/main/java/org/xwiki/contrib/llm/internal/DefaultChatModelManager.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/RequestHelper.java
A
application-ai-llm-models/application-ai-llm-models-api/src/main/java/org/xwiki/contrib/llm/internal/rest/DefaultChatCompletionsResource.java
A
application-ai-llm-models/application-ai-llm-models-api/src/main/java/org/xwiki/contrib/llm/internal/rest/DefaultModelsResource.java
A
application-ai-llm-models/application-ai-llm-models-api/src/main/java/org/xwiki/contrib/llm/rest/ChatCompletionsResource.java
A
application-ai-llm-models/application-ai-llm-models-api/src/main/java/org/xwiki/contrib/llm/rest/ModelsResource.java
M
application-ai-llm-models/application-ai-llm-models-api/src/main/resources/META-INF/components.txt
Log Message:
-----------
LLMAI-45: Create a new Java API for chat models
* Introduce a `ChatModelDescriptor` to represent metadata about chat models.
* Read this metadata from the models endpoint when available (e.g., on OpenRouter).
* Fix some issues in the API calls for listing chat models and refactor the code to rely
on the RequestHelper to avoid code duplication.
* Add a new REST API to expose the list of chat models.
* Add a new chat completions REST API based on the new Java API.
Compare:
https://github.com/xwiki-contrib/application-ai-llm/compare/8fe09dd7179e...…