Merge branch 'hotfix' into 'main'
fix tests in redaction-service See merge request fforesight/llm-service!16
This commit is contained in:
commit
c6f3dd2e26
@ -1,65 +0,0 @@
|
||||
spring:
|
||||
mvc:
|
||||
pathmatch:
|
||||
matching-strategy: ant-path-matcher
|
||||
async:
|
||||
request-timeout: 120s
|
||||
|
||||
rabbitmq:
|
||||
host: ${RABBITMQ_HOST:localhost}
|
||||
port: ${RABBITMQ_PORT:5672}
|
||||
username: ${RABBITMQ_USERNAME:user}
|
||||
password: ${RABBITMQ_PASSWORD:rabbitmq}
|
||||
listener:
|
||||
simple:
|
||||
acknowledge-mode: AUTO
|
||||
concurrency: 5
|
||||
retry:
|
||||
enabled: true
|
||||
max-attempts: 3
|
||||
max-interval: 15000
|
||||
prefetch: 1
|
||||
|
||||
llm-service:
|
||||
azureOpenAiKey: "Your Azure open Api Key"
|
||||
azureOpenAiEndpoint: "Your Azure open Api Endpoint"
|
||||
|
||||
fforesight:
|
||||
llm-service:
|
||||
base-path: '/api/llm'
|
||||
keycloak:
|
||||
ignored-endpoints: [ '/actuator/health', '/actuator/health/**', '/api/llm', '/api/llm/', '/internal/**', '/api/llm/docs/**', '/api/llm/docs', '/api/llm/llm-websocket' ]
|
||||
enabled: true
|
||||
springdoc:
|
||||
base-path: '/api/llm'
|
||||
auth-server-url: '/auth'
|
||||
enabled: true
|
||||
default-client-id: 'swagger-ui-client'
|
||||
default-tenant: 'fforesight'
|
||||
tenants:
|
||||
remote: true
|
||||
|
||||
springdoc:
|
||||
swagger-ui:
|
||||
path: ${fforesight.springdoc.base-path}/docs/swagger-ui
|
||||
operations-sorter: alpha
|
||||
tags-sorter: alpha
|
||||
oauth:
|
||||
client-id: swagger-ui-client
|
||||
doc-expansion: none
|
||||
config-url: ${fforesight.springdoc.base-path}/docs/swagger-config
|
||||
api-docs:
|
||||
path: ${fforesight.springdoc.base-path}/docs?tenantId=${fforesight.springdoc.default-tenant}
|
||||
enabled: ${fforesight.springdoc.enabled}
|
||||
pre-loading-enabled: true
|
||||
packages-to-scan: [ 'com.knecon.fforesight.llm.service.controller.external' ]
|
||||
tenant-user-management-service:
|
||||
url: "http://tenant-user-management-service:8080/internal"
|
||||
|
||||
text-analysis-service:
|
||||
url: "http://embedding-service:8080"
|
||||
|
||||
keyword-service:
|
||||
url: "http://keyword-extraction-service:8080"
|
||||
|
||||
cors.enabled: true
|
||||
@ -1 +0,0 @@
|
||||
hub.image.name.prefix=docker-dev.knecon.com/tests/
|
||||
@ -178,15 +178,9 @@ public class LlmNerService {
|
||||
response = response.substring(JSON_PREFIX.length());
|
||||
} else if (response.startsWith(JSON_PREFIX2)) {
|
||||
response = response.substring(JSON_PREFIX2.length());
|
||||
} else {
|
||||
logMalformedResponse(response);
|
||||
return null;
|
||||
}
|
||||
if (response.endsWith(SUFFIX)) {
|
||||
response = response.substring(0, response.length() - SUFFIX.length());
|
||||
} else {
|
||||
logMalformedResponse(response);
|
||||
return null;
|
||||
}
|
||||
return response;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user