Refactored, added comprehensive testing.
All checks were successful
Release / release (push) Successful in 3m17s
All checks were successful
Release / release (push) Successful in 3m17s
This commit is contained in:
3
api/testdata/ollama_no_response.json
vendored
Normal file
3
api/testdata/ollama_no_response.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"model": "llama3"
|
||||
}
|
||||
3
api/testdata/ollama_success.json
vendored
Normal file
3
api/testdata/ollama_success.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"response": "This is the Ollama response."
|
||||
}
|
||||
3
api/testdata/openai_empty_choices.json
vendored
Normal file
3
api/testdata/openai_empty_choices.json
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"choices": []
|
||||
}
|
||||
9
api/testdata/openai_success.json
vendored
Normal file
9
api/testdata/openai_success.json
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"choices": [
|
||||
{
|
||||
"message": {
|
||||
"content": "This is the response text."
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user