Closed epistoteles closed 8 months ago
Also, will the secrets all be strictly 6 characters long? I can't set it to anything longer in the interface.
Edit: It looks like this is some serious failure in the backend. No matter what secret I put in the chat API, the secret is always 's]]]]]' for the model and all filters.
@Jordine: The schema for the secret in the API is 6 characters, matches [[:ascii:]]{6}
.
Hi @epistoteles can you please tell me the steps to reproduce this? Where do you see what the secret is once the conversation is instantiated?
I'm not able to reproduce the error anymore, I'm really not sure what caused it. I'll consider this fixed for now or an error of mine.
Hi thanks for reporting that you're not having the issue anymore. Just so you know, we didn't make any changes on our end.
As per your question from above, the secret will be composed of exactly 6 alphanumeric characters.
I am having the same issue in the example of the secret within the SwaggerUI, only generating strings with first character being random and the rest being ]]]]]:
This could be just a problem of Swagger, however. Anyway it would nice to specify alphanumeric properly as I don't think the definition is stable; for me it meant english only uppercase A-Z (26) and 0-9 (10). In case is it either [a-zA-Z0-9] or [A-Z0-9] it would be nice to change that specification in the OpenAPI documentation, instead of leaving [[::ascii::]]{6}, which is a much larger set of characters. I would also suggest possibly leaving out the minLength and maxLength fields and instead just using the start and endline regex tokens ^$ to have an exact match.
{
"type":"string",
"pattern":"^[a-zA-Z0-9]{6}$",
"title":"Secret"
}
or
{
"type":"string",
"pattern":"^[A-Z0-9]{6}$",
"title":"Secret"
}
Hi, we'll change the OpenAPI specification ASAP to make sure things are clear.
In any case, we confirm that the secrets are going to be only alphanumeric characters, where the letters can be both lowercase and uppercase.
Done!
In the rules, the secret is described as alphanumeric.
However, in the API docs, the secret is also instantiated to be something else, e.g. 's]]]]]':
For me alphanumeric means a-zA-Z0-9, and nothing else. This is important for my Python filter. Could you please clarify?