Skip to content

Commit

Permalink
fix: api
Browse files Browse the repository at this point in the history
  • Loading branch information
jueli12 committed Aug 25, 2024
1 parent c2085c0 commit 2079215
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/infra/ai/huggingface.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func (c *HuggingfaceClient) Configure(cfg AIConfig) error {
return nil
}

func (c *HuggingfaceClient) Generate(ctx context.Context, prompt string, serviceType string) (string, error) {
func (c *HuggingfaceClient) Generate(ctx context.Context, prompt string) (string, error) {
resp, err := c.client.TextGeneration(ctx, &huggingface.TextGenerationRequest{
Inputs: prompt,
Parameters: huggingface.TextGenerationParameters{
Expand Down
2 changes: 1 addition & 1 deletion pkg/infra/ai/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ type AIProvider interface {
Configure(config AIConfig) error
// Generate generates a response from the AI service based on
// the provided prompt and service type.
Generate(ctx context.Context, prompt string, serviceType string) (string, error)
Generate(ctx context.Context, prompt string) (string, error)
}

// AIConfig represents the configuration settings for an AI client.
Expand Down

0 comments on commit 2079215

Please sign in to comment.