mirror of
https://github.com/OMGeeky/gpt-pilot.git
synced 2026-01-21 09:41:07 +01:00
function_call-style JSON response from gpt-4, gpt-3_5, codellama, palm-2-chat-bison
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from local_llm_function_calling.prompter import CompletionModelPrompter, InstructModelPrompter
|
||||
|
||||
from const.function_calls import ARCHITECTURE, DEV_STEPS
|
||||
from .function_calling import parse_agent_response, LlamaInstructPrompter
|
||||
from .function_calling import parse_agent_response, JsonPrompter
|
||||
|
||||
|
||||
class TestFunctionCalling:
|
||||
@@ -140,7 +140,7 @@ Function call: '''
|
||||
|
||||
def test_llama_instruct_function_prompter_named():
|
||||
# Given
|
||||
prompter = LlamaInstructPrompter()
|
||||
prompter = JsonPrompter()
|
||||
|
||||
# When
|
||||
prompt = prompter.prompt('Create a web-based chat app', ARCHITECTURE['definitions'], 'process_technologies')
|
||||
|
||||
Reference in New Issue
Block a user