Updated models with @JsonProperty to have Java-naming conventions for attributes

This commit is contained in:
Amith Koujalgi
2023-11-12 20:00:44 +05:30
parent 5c5463b764
commit 48acf921e8
4 changed files with 100 additions and 35 deletions

View File

@@ -307,20 +307,19 @@ Find the full `Javadoc` (API specifications) [here](https://amithkoujalgi.github
#### Areas of improvement
- Use Java-naming conventions for attributes in the request/response models instead of the snake-case conventions. (
- [x] Use Java-naming conventions for attributes in the request/response models instead of the snake-case conventions. (
possibly with Jackson-mapper's `@JsonProperty`)
- Fix deprecated HTTP client code
- Add additional params for `ask` APIs such as:
- [ ] Fix deprecated HTTP client code
- [ ] Add additional params for `ask` APIs such as:
- `options`: additional model parameters for the Modelfile such as `temperature`
- `system`: system prompt to (overrides what is defined in the Modelfile)
- `template`: the full prompt or prompt template (overrides what is defined in the Modelfile)
- `context`: the context parameter returned from a previous request, which can be used to keep a short
conversational memory
- `stream`: Add support for streaming responses from the model
- Setup logging
- Add test cases
- Handle exceptions better (maybe throw more appropriate exceptions)
- [x] Setup logging
- [ ] Add test cases
- [ ] Handle exceptions better (maybe throw more appropriate exceptions)
#### Get Involved