Repository navigation
Conversation
There was a problem hiding this comment.
Orca Security Scan Summary
| Status | Check | Issues by priority | |
|---|---|---|---|
| Secrets | View in Orca |
claude-haiku-5-5 returns a leading thinking block, which the server's generative-anthropic module currently reads as empty text.
| // Claude 4.7 and later models reject them with an error, and some | ||
| // earlier models reject Temperature and TopP set together. | ||
| // Leave them unset unless the target model accepts them. | ||
| // | ||
| // See [Anthropic Docs - Messages API]. | ||
| // | ||
| // [Anthropic Docs - Messages API]: https://platform.claude.com/docs/en/build-with-claude/working-with-messages |
There was a problem hiding this comment.
suggestion: looks like this is something that is better left for Weaviate Docs to clarify. E.g. Claude 4.7 and later models rejects Temaperature with an error is not client's behavior.
| Temperature *float64 `json:"temperature,omitempty"` | ||
| TopK *int64 `json:"topK,omitempty"` | ||
| TopP *float64 `json:"topP,omitempty"` |
There was a problem hiding this comment.
| Temperature *float64 `json:"temperature,omitempty"` | |
| TopK *int64 `json:"topK,omitempty"` | |
| TopP *float64 `json:"topP,omitempty"` | |
| Temperature *float64 `json:"temperature,omitzero"` | |
| TopK *int64 `json:"topK,omitzero"` | |
| TopP *float64 `json:"topP,omitzero"` |
question: is 0 a reasonable value for any of these parameters? If not, I'd suggest using a primitive type instead and adding omitzero tag. Same goes for MaxTokens above.
| type Provider struct { | ||
| // Images are base64-encoded images passed to the model with the prompt. | ||
| Images []string | ||
| // ImageProperties name the object properties that contain images for the prompt. |
There was a problem hiding this comment.
| // ImageProperties name the object properties that contain images for the prompt. | |
| // ImageProperties lists the object properties that contain images for the prompt. |
nit: imo "name" here is a claudism, "pseudo-elevated diction" as the source describes it
| type Generative struct { | ||
| // BaseURL overrides the default request URL, e.g. a proxy. | ||
| BaseURL string `json:"baseURL,omitempty"` | ||
| // Model is the Anthropic model name, e.g. "claude-haiku-4-5". |
There was a problem hiding this comment.
| // Model is the Anthropic model name, e.g. "claude-haiku-4-5". | |
| // Model name. |
nit: the example value is redundant here, as all modules which have .Model field expect the same kind of input.
No description provided.