Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,8 @@ jobs:

- name: Configure kubectl for SAP BTP Kyma
run: |
# Create symlink for kubectl-oidc_login
ln -s $(which kubelogin) /usr/local/bin/kubectl-oidc_login
mkdir -p ~/.kube
echo "${{ secrets.KUBECONFIG }}" | base64 -d > ~/.kube/config
chmod 600 ~/.kube/config
Expand Down Expand Up @@ -257,6 +259,8 @@ jobs:

- name: Configure kubectl for SAP BTP Kyma
run: |
# Create symlink for kubectl-oidc_login
ln -s $(which kubelogin) /usr/local/bin/kubectl-oidc_login
mkdir -p ~/.kube
echo "${{ secrets.KUBECONFIG }}" | base64 -d > ~/.kube/config
chmod 600 ~/.kube/config
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
# Version: v0.6.3

* [#139](https://github.com/SAP/STARS/pull/139): Add perplexity model family
* [#140](https://github.com/SAP/STARS/pull/140): Bump python-dotenv from 1.1.1 to 1.2.1 in /backend-agent
* [#141](https://github.com/SAP/STARS/pull/141): Bump sentence-transformers from 5.1.1 to 5.1.2 in /backend-agent
* [#143](https://github.com/SAP/STARS/pull/143): Bump sap-ai-sdk-gen[all] from 5.7.5 to 5.8.0 in /backend-agent
* [#144](https://github.com/SAP/STARS/pull/144): Bump the js-dependencies group across 1 directory with 23 updates


# Version: v0.6.2

* [#125](https://github.com/SAP/STARS/pull/125): Re organize backend
Expand Down
14 changes: 13 additions & 1 deletion backend-agent/llm.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
'anthropic--claude-3.7-sonnet',
'anthropic--claude-4-sonnet',
'anthropic--claude-4-opus',
'anthropic--claude-4.5-sonnet',
],
'azure-openai':
[
Expand All @@ -72,6 +73,11 @@
'gemini-2.5-flash',
'gemini-2.5-pro',
],
'perplexity-ai':
[
'sonar',
'sonar-pro',
],
}


Expand All @@ -91,13 +97,19 @@ def from_model_name(cls, model_name: str) -> 'LLM':
# Foundation-models scenarios in AI Core
if model_name in AICORE_MODELS['azure-openai']:
return AICoreOpenAILLM(model_name)
# IBM models are compatible with OpenAI completion API
if model_name in AICORE_MODELS['aicore-ibm']:
# IBM models are compatible with OpenAI completion API
return AICoreOpenAILLM(model_name)
if model_name in AICORE_MODELS['aicore-opensource']:
return AICoreOpenAILLM(model_name, False)
# Mistral models are compatible with OpenAI completion API
if model_name in AICORE_MODELS['aicore-mistralai']:
return AICoreOpenAILLM(model_name, False)
# Perplexity models are compatible with OpenAI completion API
if model_name in AICORE_MODELS['perplexity-ai']:
return AICoreOpenAILLM(model_name)

# Non OpenAI-compatible models in AI Core
if model_name in AICORE_MODELS['aws-bedrock']:
if 'titan' in model_name:
# Titan models don't support system prompts
Expand Down
8 changes: 4 additions & 4 deletions backend-agent/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = 'stars'
version = '0.6.2'
version = '0.6.3'
description = 'Smart Threat AI Reporting Scanner (STARS)'
readme = 'README.md'
license = {text = 'Apache-2.0'}
Expand All @@ -13,8 +13,8 @@ maintainers = [
]
requires-python = '>=3.10,<3.13'
dependencies = [
'sap-ai-sdk-gen[all]==5.7.5',
'python-dotenv==1.1.1',
'sap-ai-sdk-gen[all]==5.8.0',
'python-dotenv==1.2.1',
'faiss-cpu==1.12.0',
'Flask==3.1.2',
'Flask-Cors==6.0.1',
Expand All @@ -35,7 +35,7 @@ dependencies = [
'codeattack @ git+https://github.com/marcorosa/CodeAttack',
'gptfuzzer @ git+https://github.com/marcorosa/GPTFuzz@no-vllm',
'garak==0.11.0',
'sentence-transformers==5.1.1',
'sentence-transformers==5.1.2',
]

[project.optional-dependencies]
Expand Down
30 changes: 18 additions & 12 deletions backend-agent/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading