Used auto formating on go files
This commit is contained in:
parent
6053549444
commit
5384383908
2
LLM.go
2
LLM.go
@ -50,7 +50,7 @@ func deleteLLMtoDelete(c *fiber.Ctx) {
|
||||
}
|
||||
}
|
||||
|
||||
func createLLM(c *fiber.Ctx) error {
|
||||
func createLLM(c *fiber.Ctx) error {
|
||||
name := c.FormValue("model-name-input")
|
||||
modelID := c.FormValue("selectedLLMId")
|
||||
temperature := c.FormValue("temperature-slider")
|
||||
|
10
Request.go
10
Request.go
@ -1,13 +1,3 @@
|
||||
// I guess it should be some kind of package with different part for different Company
|
||||
// I will maybe do it in the future, rn, I don't have time to learn that and I like it like that
|
||||
// It do need more time and try and error to do all of them but they are fully independant
|
||||
// And this is simple, I don't need to trick my mind to undersant that some part are share, ect
|
||||
// If I want to see how I go from the message to the response, I can. That what I want
|
||||
|
||||
// If you are wondering how it work:
|
||||
// User send message -> Generate HTML of one user message and one bot placeholder ----
|
||||
// -> Send HTML and append it to the chat container -> The placeholder do a load HTMX request to GenerateMultipleMessagesHandler ----
|
||||
// -> Make multiple request in parallel to all APIs -> Send one SSE event per message receive.
|
||||
package main
|
||||
|
||||
import (
|
||||
|
@ -1,17 +1,16 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io"
|
||||
"net/http"
|
||||
"encoding/json"
|
||||
"bytes"
|
||||
|
||||
"github.com/edgedb/edgedb-go"
|
||||
"github.com/gofiber/fiber/v2"
|
||||
)
|
||||
|
||||
|
||||
type NimChatCompletionRequest struct {
|
||||
Model string `json:"model"`
|
||||
Messages []RequestMessage `json:"messages"`
|
||||
|
Loading…
x
Reference in New Issue
Block a user