mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-08 11:58:34 +02:00
Fix Google Colab Demo (#275)
This commit is contained in:
parent
89f71ac335
commit
a03818e6f6
@ -151,7 +151,7 @@ class ColabDemoRequestModel(HostSpecificRequestModel):
|
||||
}
|
||||
|
||||
data = {
|
||||
"input": filled_prompt,
|
||||
"inputs": filled_prompt,
|
||||
"parameters": {
|
||||
"temperature": 0.0,
|
||||
"max_tokens": max_output_tokens,
|
||||
@ -212,6 +212,10 @@ class RequestCompletionQA(QAModel):
|
||||
self.model_class = get_host_specific_model_class(model_host_type)
|
||||
self.timeout = timeout
|
||||
|
||||
@property
|
||||
def requires_api_key(self) -> bool:
|
||||
return self.model_class.requires_api_key
|
||||
|
||||
def _get_request_response(
|
||||
self, query: str, context_docs: list[InferenceChunk], stream: bool
|
||||
) -> Response:
|
||||
|
Loading…
x
Reference in New Issue
Block a user