Skip to content

Commit 1d0491b

Browse files
denisangel2k2danielmartinlazyoldbear
authored
Update AIA to 1.6.0 (#106)
See https://www.nutrient.io/guides/ai-assistant/changelog/#1.6.0 --------- Co-authored-by: Daniel Martín <[email protected]> Co-authored-by: Ingvarr Zhmakin <[email protected]>
1 parent 1577013 commit 1d0491b

File tree

5 files changed

+30
-67
lines changed

5 files changed

+30
-67
lines changed

charts/ai-assistant/CHANGELOG.md

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,31 @@
11
# Changelog
2+
23
- [Changelog](#changelog)
4+
- [0.4.0 (2025-10-28)](#040-2025-10-28)
5+
- [Changed](#changed)
36
- [0.3.0 (2025-10-04)](#030-2025-10-04)
47
- [Added](#added)
5-
- [Changed](#changed)
8+
- [Changed](#changed-1)
69
- [0.2.0 (2025-07-04)](#020-2025-07-04)
710
- [Added](#added-1)
8-
- [Changed](#changed-1)
9-
- [0.1.0 (2025-06-17)](#010-2025-06-17)
1011
- [Changed](#changed-2)
11-
- [0.0.13 (2025-06-10)](#0013-2025-06-10)
12+
- [0.1.0 (2025-06-17)](#010-2025-06-17)
1213
- [Changed](#changed-3)
13-
- [0.0.12 (2025-06-10)](#0012-2025-06-10)
14+
- [0.0.13 (2025-06-10)](#0013-2025-06-10)
1415
- [Changed](#changed-4)
15-
- [0.0.10 (2025-06-9)](#0010-2025-06-9)
16+
- [0.0.12 (2025-06-10)](#0012-2025-06-10)
1617
- [Changed](#changed-5)
18+
- [0.0.10 (2025-06-9)](#0010-2025-06-9)
19+
- [Changed](#changed-6)
1720
- [0.0.1 (2025-05-28)](#001-2025-05-28)
1821
- [Added](#added-2)
1922

23+
## 0.4.0 (2025-11-7)
24+
25+
### Changed
26+
27+
* [AI Assistant 1.6.0](https://www.nutrient.io/guides/ai-assistant/changelog/#1.6.0)
28+
2029
## 0.3.0 (2025-10-04)
2130

2231
### Added

charts/ai-assistant/Chart.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ type: application
44
description: AI Assistant is a thing that assists an AI
55
home: https://www.nutrient.io/guides/ai-assistant/
66
icon: https://cdn.prod.website-files.com/65fdb7696055f07a05048833/66e58e33c3880ff24aa34027_nutrient-logo.png
7-
version: 0.3.0
8-
appVersion: "1.5.0"
7+
version: 0.4.0
8+
appVersion: "1.6.0"
99

1010
keywords:
1111
- nutrient
@@ -18,6 +18,6 @@ maintainers:
1818

1919
dependencies:
2020
- name: document-engine
21-
version: ~6
21+
version: ~7
2222
repository: https://pspdfkit.github.io/helm-charts
2323
condition: document-engine.enabled

charts/ai-assistant/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AI Assistant Helm chart
22

3-
![Version: 0.3.0](https://img.shields.io/badge/Version-0.3.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.5.0](https://img.shields.io/badge/AppVersion-1.5.0-informational?style=flat-square)
3+
![Version: 0.4.0](https://img.shields.io/badge/Version-0.4.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 1.6.0](https://img.shields.io/badge/AppVersion-1.6.0-informational?style=flat-square)
44

55
AI Assistant is a thing that assists an AI
66

charts/ai-assistant/values.schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@
370370
},
371371
"name": {
372372
"type": "string",
373-
"pattern": "^(openai|azure|bedrock|openai-compat)$"
373+
"pattern": "^(openai|azure|bedrock|openai-compat|mock)$"
374374
}
375375
}
376376
}
@@ -393,7 +393,7 @@
393393
},
394394
"name": {
395395
"type": "string",
396-
"pattern": "^(openai|azure|bedrock|openai-compat)$"
396+
"pattern": "^(openai|azure|bedrock|openai-compat|mock)$"
397397
}
398398
}
399399
}

charts/ai-assistant/values.simple.yaml

Lines changed: 9 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -10,70 +10,24 @@ apiAuth:
1010
publicKey: none
1111
algorithm: RS256
1212

13-
# This is only necessary until `openai-mock` supports text embeddings
14-
sidecars:
15-
- name: openai-mocker
16-
image: python:3.11-alpine
17-
imagePullPolicy: IfNotPresent
18-
command:
19-
- /bin/sh
20-
- -ce
21-
- |-
22-
cat > /tmp/embeddings-mock.py << 'EOF'
23-
import uvicorn
24-
from fastapi import FastAPI
25-
from pydantic import BaseModel
26-
from typing import List, Union
27-
import random
28-
29-
app = FastAPI()
30-
31-
class EmbeddingRequest(BaseModel):
32-
input: Union[str, List[str]]
33-
model: str = "text-embedding-3-small"
34-
35-
@app.post("/v1/embeddings")
36-
async def create_embeddings(request: EmbeddingRequest):
37-
inputs = request.input if isinstance(request.input, list) else [request.input]
38-
embeddings = []
39-
for i, text in enumerate(inputs):
40-
embedding = [random.uniform(-1, 1) for _ in range(1536)]
41-
embeddings.append({
42-
"object": "embedding",
43-
"index": i,
44-
"embedding": embedding
45-
})
46-
return {
47-
"object": "list",
48-
"data": embeddings,
49-
"model": request.model,
50-
"usage": {
51-
"prompt_tokens": sum(len(text.split()) for text in inputs),
52-
"total_tokens": sum(len(text.split()) for text in inputs)
53-
}
54-
}
55-
56-
if __name__ == "__main__":
57-
uvicorn.run(app, host="0.0.0.0", port=8080)
58-
EOF
59-
60-
pip install fastapi uvicorn && python /tmp/embeddings-mock.py
6113

6214
config:
6315
serviceConfiguration:
6416
version: '1'
6517
aiServices:
6618
chat:
6719
provider:
68-
name: 'openai-compat'
69-
baseUrl: 'https://api.openai-mock.com'
70-
model: 'gpt-4'
20+
name: "mock"
21+
fakeResponses:
22+
- "Hello! This is a mock response for testing."
23+
- "Mock provider is working correctly."
24+
- "Test response from AIA mock provider."
25+
model: "mock-chat-model"
7126
textEmbeddings:
7227
provider:
73-
name: 'openai-compat'
74-
# `openai-mock` does not yet support text embeddings
75-
baseUrl: 'http://localhost:8080/v1'
76-
model: 'text-embedding-3-small'
28+
name: "mock"
29+
fakeResponses: []
30+
model: "mock-embedding-model"
7731
documentEngine:
7832
enabled: true
7933
url: http://document-engine:5000

0 commit comments

Comments
 (0)