-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Changelog ### Features - ✨ #81: Allow to chat message based for specific models (@mkrueger12) ### Improvements - 🔧 #78: Normalize response latency by response token count (@roma-glushko) - 📝 #112 added the CLI banner info (@roma-glushko) ### Miscellaneous - 📝 #114 Make links actual across the project (@roma-glushko)
- Loading branch information
1 parent
2c8ca01
commit b02c949
Showing
33 changed files
with
560 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,7 +59,7 @@ a project may be further defined and clarified by project maintainers. | |
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be | ||
reported by contacting the project team at [email protected]. All | ||
reported by contacting the project team at [[email protected]](mailto:[email protected]). All | ||
complaints will be reviewed and investigated and will result in a response that | ||
is deemed necessary and appropriate to the circumstances. The project team is | ||
obligated to maintain confidentiality with regard to the reporter of an incident. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,4 +3,4 @@ | |
We want to keep Glide safe for everyone. | ||
|
||
If you've discovered a security vulnerability in Glide, | ||
we appreciate your help in disclosing it to us in a responsible manner, using this email: [email protected] | ||
we appreciate your help in disclosing it to us in a responsible manner, using this email: [[email protected]](mailto:[email protected]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,12 +10,13 @@ const docTemplate = `{ | |
"description": "{{escape .Description}}", | ||
"title": "{{.Title}}", | ||
"contact": { | ||
"name": "Glide Community", | ||
"url": "https://github.com/modelgateway/glide" | ||
"name": "EinStack Community", | ||
"url": "https://github.com/EinStack/glide/", | ||
"email": "[email protected]" | ||
}, | ||
"license": { | ||
"name": "Apache 2.0", | ||
"url": "https://github.com/modelgateway/glide/blob/develop/LICENSE" | ||
"url": "https://github.com/EinStack/glide/blob/develop/LICENSE" | ||
}, | ||
"version": "{{.Version}}" | ||
}, | ||
|
@@ -626,6 +627,17 @@ const docTemplate = `{ | |
} | ||
} | ||
}, | ||
"schemas.OverrideChatRequest": { | ||
"type": "object", | ||
"properties": { | ||
"message": { | ||
"$ref": "#/definitions/schemas.ChatMessage" | ||
}, | ||
"model_id": { | ||
"type": "string" | ||
} | ||
} | ||
}, | ||
"schemas.ProviderResponse": { | ||
"type": "object", | ||
"properties": { | ||
|
@@ -639,11 +651,11 @@ const docTemplate = `{ | |
} | ||
}, | ||
"tokenCount": { | ||
"$ref": "#/definitions/schemas.TokenCount" | ||
"$ref": "#/definitions/schemas.TokenUsage" | ||
} | ||
} | ||
}, | ||
"schemas.TokenCount": { | ||
"schemas.TokenUsage": { | ||
"type": "object", | ||
"properties": { | ||
"promptTokens": { | ||
|
@@ -668,6 +680,9 @@ const docTemplate = `{ | |
"items": { | ||
"$ref": "#/definitions/schemas.ChatMessage" | ||
} | ||
}, | ||
"override": { | ||
"$ref": "#/definitions/schemas.OverrideChatRequest" | ||
} | ||
} | ||
}, | ||
|
@@ -700,16 +715,20 @@ const docTemplate = `{ | |
} | ||
} | ||
} | ||
}, | ||
"externalDocs": { | ||
"description": "Documentation", | ||
"url": "https://glide.einstack.ai/" | ||
} | ||
}` | ||
|
||
// SwaggerInfo holds exported Swagger Info so clients can modify it | ||
var SwaggerInfo = &swag.Spec{ | ||
Version: "1.0", | ||
Version: "0.0.1", | ||
Host: "localhost:9099", | ||
BasePath: "/", | ||
Schemes: []string{"http"}, | ||
Title: "Glide Gateway", | ||
Title: "Glide", | ||
Description: "API documentation for Glide, an open-source lightweight high-performance model gateway", | ||
InfoInstanceName: "swagger", | ||
SwaggerTemplate: docTemplate, | ||
|
Oops, something went wrong.