-
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.
15 request body to ai api schema (#18)
* #15: Update dependencies in go.mod and add input validation using validator package * #15: Fix validation error in BuildAPIRequest function * #15: Refactor OpenAI provider configuration structure * #15: TODO: Import provider configs to the config list * #15: Import OpenAI provider configuration and update BuildAPIRequest function * #15: comments --------- Co-authored-by: Max <[email protected]>
- Loading branch information
1 parent
bd1d4d3
commit dd17fc6
Showing
6 changed files
with
90 additions
and
41 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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
package pkg | ||
package openai | ||
|
||
import ( | ||
"fmt" | ||
|
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 |
---|---|---|
@@ -1,8 +1,12 @@ | ||
package pkg | ||
package openai | ||
|
||
type ProviderConfigs map[string]interface{} // TODO: import from types.go | ||
import ( | ||
"glide/pkg/providers" | ||
) | ||
|
||
var OpenAIConfig = ProviderConfigs{ | ||
|
||
// TODO: this needs to be imported into buildAPIRequest.go | ||
var OpenAIConfig = pkg.ProviderConfigs{ | ||
"api": OpenAIAPIConfig, | ||
"chat": OpenAiChatDefaultConfig, | ||
} |