Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gateway timeout errors (504) need error handling #989

Closed
anton-heijs opened this issue Dec 18, 2024 · 0 comments · Fixed by #1039
Closed

Gateway timeout errors (504) need error handling #989

anton-heijs opened this issue Dec 18, 2024 · 0 comments · Fixed by #1039

Comments

@anton-heijs
Copy link

Describe the issue in detail here. Attach any relevant screenshots or files. The section below was automatically generated. Remove any information that you do not wish to include in the report.

ConfirmMatch[ llmSynthesize0[ prompt, evaluator, 1 ], Except[ "", _String ], "Result" ],

Debug Data
Property Value
Name "Wolfram/Chatbook"
Version "2.0.1"
ReleaseID "92802b1ef8f559233ce0b012c36984092f64df5b"
EvaluationEnvironment "Session"
FrontEndVersion "Desktop: 14.1 for Microsoft Windows (64-bit) (July 16, 2024)"
KernelVersion "14.1.0 for Microsoft Windows (64-bit) (July 16, 2024)"
SystemID "Windows-x86-64"
Notebooks True
DynamicEvaluation True
SynchronousEvaluation False
TaskEvaluation False

Settings

Property Value
InheritanceTest True
SetCellDingbat False
TabbedOutput False
WorkspaceChat True
AllowSelectionContext True
AppName "NotebookAssistance"
LLMEvaluator "NotebookAssistant"
MaxContextTokens 32768
MaxToolResponses 3
Model <|"Service" -> "LLMKit", "Name" -> Automatic|>
PromptGenerators {"RelatedDocumentation"}
ServiceCaller "NotebookAssistance"
Tools {"NotebookEditor"}
ToolSelectionType <|"DocumentationLookup" -> None, "DocumentationSearcher" -> None|>
ToolOptions <|"WolframLanguageEvaluator" -> <|"AppendURIPrompt" -> True, "Method" -> "Session"|>|>
AutoGenerateTitle True
AutoSaveConversations True
ConversationUUID "ca141af1-66f9-4c57-80f4-ed3cf0c14fb8"
StyleSheetVersion "1.5.2.3.3941177587"

Failure Data

<|
  "Evaluation" :> Wolfram`Chatbook`Common`llmSynthesize["Your task is to read a chat transcript between a user and assistant, and then select any relevant Wolfram Language documentation snippets that could help the assistant answer the user's latest message.\n\nEach snippet is uniquely identified by a URI (always starts with 'paclet:' or 'https://resources.wolframcloud.com').\n\nChoose up to 5 documentation snippets that would help answer the user's MOST RECENT message.\n\nRespond with JSON in the following forma...,
  "Information" -> "Result@@Source/Chatbook/LLMUtilities.wl:37,5-37,92",
  "ConfirmationType" -> "ConfirmMatch",
  "Expression" :> Failure["InvalidResponse", <|"Data" -> {<|"BodyChunk" -> "<html><body><h1>504 Gateway Time-out</h1>\nThe server didn't respond in time.\n</body></html>\n", "BodyChunkProcessed" -> {}, "StatusCode" -> Missing["NotAvailable"], "EventName" -> "BodyChunkReceived"|>, <|"BodyChunk" -> "", "BodyChunkProcessed" -> {}, "StatusCode" -> 504, "EventName" -> "BodyChunkReceived"|>}|>],
  "Pattern" -> Except["", _String],
  "Stack" :> Wolfram`Chatbook`Common`Private`$stack$120667,
  "Failure" -> Failure["ConfirmationFailed", <|"MessageTemplate" -> "Result@@Source/Chatbook/LLMUtilities.wl:37,5-37,92", "MessageParameters" -> {}, "ConfirmationType" -> "ConfirmMatch", "Expression" :> Failure["InvalidResponse", <|"Data" -> {<|"BodyChunk" -> "<html><body><h1>504 Gateway Time-out</h1>\nThe server didn't respond in time.\n</body></html>\n", "BodyChunkProcessed" -> {}, "StatusCode" -> Missing["NotAvailable"], "EventName" -> "BodyChunkReceived"|>, <|"BodyChunk" -> "", "BodyChunkProcessed" -> {}, ...,
  "Arguments" -> {}
|>

Stack Data

trimURL
throwFailure
catchTop
formatGeneratedPrompt
catchTopAs
withChatState
catchTop
@rhennigan rhennigan changed the title General::ChatbookInternal Gateway timeout errors (504) need error handling Jan 6, 2025
@rhennigan rhennigan marked this as a duplicate of #1025 Jan 21, 2025
@rhennigan rhennigan marked this as a duplicate of #1026 Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant