Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/3 provider openai #13

Merged
merged 8 commits into from
Dec 10, 2023
Merged

Feature/3 provider openai #13

merged 8 commits into from
Dec 10, 2023

Conversation

mkrueger12
Copy link
Contributor

open api chat endpoint schema & general api schema

go.sum Outdated
@@ -0,0 +1,2 @@
github.com/joho/godotenv v1.5.1 h1:7eLL/+HRGLY0ldzfGMeQkb7vMd0as4CfYvUVzLqw0N0=
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to install it temporarily until we have #11 done?
For that, you need to do go get ... again and make sure go.mod is updated as well

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed the dependency as it wasn't being used.

FunctionCall: ConfigItem{
Param: "function_call",
},
MaxTokens: NumericConfigItem{
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be good to investigate if there any Pydantic-like validation in Golang, so these basic validations are done for us out-of-the-box.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll explore this

@@ -0,0 +1,119 @@
package openai

type ProviderConfig struct {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wondering what part of these wide variety of configs should be passed in realtime and what would be set up in the service config

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moved this convo to Discord

@mkrueger12 mkrueger12 merged commit 72e75e8 into develop Dec 10, 2023
@mkrueger12 mkrueger12 deleted the feature/3-provider-openai branch December 10, 2023 15:46
roma-glushko added a commit that referenced this pull request Dec 10, 2023
mkrueger12 pushed a commit that referenced this pull request Dec 11, 2023
* #12 Inited the Gateway, ServerManager components + CLI

* #12 Inited ServerManager

* #12 Used hertz as a HTTP server

* #12 Added todo

* #13 Added the health endpoint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants