mirror of
https://github.com/ollama/ollama.git
synced 2025-12-09 21:42:43 +01:00
Separate ListResponse and ModelResponse for api/tags vs api/ps (#4842)
* Remove false time fields * Struct Separation for List and Process * Remove Marshaler
This commit is contained in:
@@ -116,6 +116,8 @@ func Test_Routes(t *testing.T) {
|
||||
body, err := io.ReadAll(resp.Body)
|
||||
require.NoError(t, err)
|
||||
|
||||
assert.NotContains(t, string(body), "expires_at")
|
||||
|
||||
var modelList api.ListResponse
|
||||
err = json.Unmarshal(body, &modelList)
|
||||
require.NoError(t, err)
|
||||
|
||||
Reference in New Issue
Block a user