Skip to content

Commit 6d28e23

Browse files
Merge pull request #255 from oracle/248-mcp-langchain-export
fix for SpringAI cod gen
2 parents 67ab04c + 499a017 commit 6d28e23

File tree

3 files changed

+9
-8
lines changed

3 files changed

+9
-8
lines changed

src/client/content/config/tabs/settings.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,7 @@ def spring_ai_obaas(src_dir, file_name, provider, ll_config, embed_config):
214214

215215
def spring_ai_zip(provider, ll_config, embed_config):
216216
"""Create SpringAI Zip File"""
217+
217218
# Source directory that you want to copy
218219
files = ["mvnw", "mvnw.cmd", "pom.xml", "README.md"]
219220

src/client/spring_ai/templates/obaas.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ spring:
2323
frequencyPenalty: {ll_model[frequency_penalty]}
2424
maxTokens: {ll_model[max_completion_tokens]}
2525
topP: {ll_model[top_p]}
26-
model: {ll_model[model]}
26+
model: {ll_model[id]}
2727
embedding:
2828
options:
29-
model: {vector_search[model]}
29+
model: {vector_search[id]}
3030
ollama:
3131
base-url: "http://ollama.ollama.svc.cluster.local:11434"
3232
chat:
@@ -36,10 +36,10 @@ spring:
3636
frequency-penalty: {ll_model[frequency_penalty]}
3737
num-predict: {ll_model[max_completion_tokens]}
3838
top-p: {ll_model[top_p]}
39-
model: \"{ll_model[model]}\"
39+
model: \"{ll_model[id]}\"
4040
embedding:
4141
options:
42-
model: \"{vector_search[model]}\"
42+
model: \"{vector_search[id]}\"
4343
aims:
4444
context_instr: \"{ctx_prompt}\"
4545
vectortable:

src/client/spring_ai/templates/start.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ if [[ "{provider}" == "ollama" ]]; then
77
unset OPENAI_EMBEDDING_MODEL
88
unset OPENAI_URL
99
export OLLAMA_BASE_URL="{ll_model[api_base]}"
10-
export OLLAMA_CHAT_MODEL="{ll_model[model]}"
11-
export OLLAMA_EMBEDDING_MODEL="{vector_search[model]}"
10+
export OLLAMA_CHAT_MODEL="{ll_model[id]}"
11+
export OLLAMA_EMBEDDING_MODEL="{vector_search[id]}"
1212
else
1313
PREFIX="OP"; UNSET_PREFIX="OL"
14-
export OPENAI_CHAT_MODEL="{ll_model[model]}"
15-
export OPENAI_EMBEDDING_MODEL="{vector_search[model]}"
14+
export OPENAI_CHAT_MODEL="{ll_model[id]}"
15+
export OPENAI_EMBEDDING_MODEL="{vector_search[id]}"
1616
export OPENAI_URL="{ll_model[api_base]}"
1717
export OLLAMA_CHAT_MODEL=""
1818
unset OLLAMA_EMBEDDING_MODEL

0 commit comments

Comments
 (0)