You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: api_test.go
    path of file: ./repos/langchaingo/chains
    
    the code of the file until where you have to start completion: package chains

import (
	"context"
	"net/http"
	"os"
	"strings"
	"testing"

	"github.com/stretchr/testify/require"
	"github.com/tmc/langchaingo/l
    
func TestAPI(t *testing.T) {
	t.Parallel()
	if openaiKey := os.Getenv("OPENAI_API_KEY"); openaiKey == "" {
		t.Skip("OPENAI_API_KEY not set")
	}

	llm, err := openai.New()
	require.NoError(t, err)

	chain := NewAPIChain(llm, http.DefaultClient)
	q := map[string]any{
		"api_docs": MeteoDocs,
		"input":    "What is the weather like right now in Munich, Germany in degrees Fahrenheit?",
	}
	result, err := Call(context.Background(), chain, q)
	require.NoError(t, err)

	answer, ok := result["answer"].(string)
	if !ok {
		t.Fatal("expected answer to be a string")
	}
	require.True(t, strings.Contains(answer, "Munich"), `result does not contain the keyword 'Munich'`)
}