(ctx context.Context, config ent.VectorizationConfig)
| 144 | } |
| 145 | |
| 146 | func (v *client) buildURL(ctx context.Context, config ent.VectorizationConfig) (string, error) { |
| 147 | return modulecomponents.ValidatedBaseURLFromHeader(ctx, "X-Databricks-Endpoint", config.Endpoint) |
| 148 | } |
| 149 | |
| 150 | func (v *client) getError(statusCode int, resBody embedding) error { |
| 151 | endpoint := "Databricks Foundation Model API" |