Crate ragit_api

Source

Re-exports§

pub use crate::record::RecordAt;

Modules§

record

Structs§

Message
Model
ModelRaw
There are 2 types for models: Model and ModelRaw. I know it’s confusing, I’m sorry. Model is the type ragit internally uses and ModelRaw is only for json serialization. Long time ago, there was only Model type. But then I implemented models.json interface. I wanted people to directly edit the json file and found that Model isn’t intuitive to edit directly. So I added this struct.
Request
Response
Schema

Enums§

ApiProvider
Error
ImageType
JsonType
This enum is solely for error messages.
MessageContent
Role

Functions§

get_model_by_name
load_models
message_contents_to_json_array
save_models