Skip to content

Commit 6c68ffd

Browse files
committed
feat: add mistral code
1 parent dc50e64 commit 6c68ffd

File tree

3 files changed

+9
-5
lines changed

3 files changed

+9
-5
lines changed

backend/src/main/java/ch/xxx/aidoclibchat/usecase/service/CodeGenerationService.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ public class CodeGenerationService {
5353
1. Analyse the source class
5454
2. Analyse the context classes for the classes used by the source class
5555
3. Analyse the class in test example to base the code of the generated test class on it.
56-
4. Generate a test class for the source class, use the context classes as sources for it and base the code of the test class on the test example.
56+
4. Generate a test class for the source class and use the context classes as sources for creating the test class.
57+
5. Use the code of the test class as test example.
58+
6. Generate tests for each of the public methods of the source class.
5759
Generate the complete source code of the test class implementing the tests.
5860
5961
{testExample}

backend/src/main/resources/application-ollama.properties

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,15 @@ spring.liquibase.change-log=classpath:/dbchangelog/db.changelog-master-ollama.xm
3535
#spring.ai.ollama.chat.model=deepseek-coder-v2:16b
3636
#spring.ai.ollama.chat.options.num-ctx=65536
3737

38+
spring.ai.ollama.chat.model=codestral:22b
39+
spring.ai.ollama.chat.options.num-ctx=32768
40+
3841
# generate book summaries
3942
spring.ai.ollama.chat.options.num-thread=8
4043
spring.ai.ollama.chat.options.keep_alive=1s
4144

4245
#spring.ai.ollama.chat.model=llama3.1:70b
4346
#spring.ai.ollama.chat.options.num-ctx=131072
44-
#spring.ai.ollama.chat.model=qwen:32b
45-
spring.ai.ollama.chat.model=qwen2.5:32b
47+
#spring.ai.ollama.chat.model=qwen2.5:32b
4648
#spring.ai.ollama.chat.options.num-ctx=32768
47-
spring.ai.ollama.chat.options.num-ctx=30720
49+
#spring.ai.ollama.chat.options.num-ctx=30720

runOllama.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@ docker exec -it ollama ollama run stable-beluga:13bc
1111
#docker exec -it ollama ollama run granite-code:20b
1212
#docker exec -it ollama ollama run deepseek-coder-v2:16b
1313
#docker exec -it ollama ollama run llama3.1:70b
14-
#docker exec -it ollama ollama run qwen:32b
1514
#docker exec -it ollama ollama run qwen2.5:32b
15+
#docker exec -it ollama ollama run codestral:22b
1616
#docker exec -it ollama bash

0 commit comments

Comments
 (0)